From 14e09d74a149572a8c975277e68753da66852436 Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Mon, 11 Jul 2022 02:09:17 +0200 Subject: [PATCH] Cargo fmt fix --- qbittorrent-web-api-gen/src/group.rs | 6 +++++- qbittorrent-web-api-gen/src/lib.rs | 4 ++-- qbittorrent-web-api-gen/src/parser/group_parser/mod.rs | 4 ++-- .../src/parser/group_parser/return_type.rs | 5 ++++- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/qbittorrent-web-api-gen/src/group.rs b/qbittorrent-web-api-gen/src/group.rs index 67cc7e0..b7809eb 100644 --- a/qbittorrent-web-api-gen/src/group.rs +++ b/qbittorrent-web-api-gen/src/group.rs @@ -4,7 +4,11 @@ use case::CaseExt; use quote::{format_ident, quote}; use regex::Regex; -use crate::{parser::{self, types::TypeInfo}, skeleton::auth_ident, util}; +use crate::{ + parser::{self, types::TypeInfo}, + skeleton::auth_ident, + util, +}; pub fn generate_groups(groups: Vec) -> proc_macro2::TokenStream { let gr = groups diff --git a/qbittorrent-web-api-gen/src/lib.rs b/qbittorrent-web-api-gen/src/lib.rs index 75a9b9c..e66d01d 100644 --- a/qbittorrent-web-api-gen/src/lib.rs +++ b/qbittorrent-web-api-gen/src/lib.rs @@ -1,8 +1,8 @@ mod group; +mod md_parser; +mod parser; mod skeleton; mod util; -mod parser; -mod md_parser; use case::CaseExt; use proc_macro::TokenStream; diff --git a/qbittorrent-web-api-gen/src/parser/group_parser/mod.rs b/qbittorrent-web-api-gen/src/parser/group_parser/mod.rs index 0683654..7b8d799 100644 --- a/qbittorrent-web-api-gen/src/parser/group_parser/mod.rs +++ b/qbittorrent-web-api-gen/src/parser/group_parser/mod.rs @@ -1,8 +1,8 @@ use crate::md_parser::TokenTree; -use self::{return_type::get_return_type, parameters::get_parameters}; +use self::{parameters::get_parameters, return_type::get_return_type}; -use super::{ApiGroup, ApiMethod, util}; +use super::{util, ApiGroup, ApiMethod}; mod description; mod parameters; diff --git a/qbittorrent-web-api-gen/src/parser/group_parser/return_type.rs b/qbittorrent-web-api-gen/src/parser/group_parser/return_type.rs index 241d4d0..c79c929 100644 --- a/qbittorrent-web-api-gen/src/parser/group_parser/return_type.rs +++ b/qbittorrent-web-api-gen/src/parser/group_parser/return_type.rs @@ -1,4 +1,7 @@ -use crate::{md_parser::MdContent, parser::{ReturnType, object_types::get_object_types, ReturnTypeParameter, types::Type}}; +use crate::{ + md_parser::MdContent, + parser::{object_types::get_object_types, types::Type, ReturnType, ReturnTypeParameter}, +}; pub fn get_return_type(content: &[MdContent]) -> Option { let table = content