diff --git a/qbittorrent-web-api-gen/src/generate/group/method/method_with_params.rs b/qbittorrent-web-api-gen/src/generate/group/method/method_with_params.rs index 0700ba4..5af6ef0 100644 --- a/qbittorrent-web-api-gen/src/generate/group/method/method_with_params.rs +++ b/qbittorrent-web-api-gen/src/generate/group/method/method_with_params.rs @@ -3,7 +3,7 @@ use quote::quote; use crate::{generate::util, parser, types}; -use super::{send_method_builder::SendMethodBuilder, return_type::create_return_type}; +use super::{return_type::create_return_type, send_method_builder::SendMethodBuilder}; pub fn create_method_with_params( group: &parser::ApiGroup, @@ -28,7 +28,8 @@ pub fn create_method_with_params( let group_name = util::to_ident(&group.name.to_camel()); let send_builder = - SendMethodBuilder::new(&util::to_ident("send"), url, quote! { self.group.auth }).with_form(); + SendMethodBuilder::new(&util::to_ident("send"), url, quote! { self.group.auth }) + .with_form(); let generate_send_impl = |send_method: proc_macro2::TokenStream| { let optional_params = generate_optional_params(params); diff --git a/qbittorrent-web-api-gen/src/generate/group/method/method_without_params.rs b/qbittorrent-web-api-gen/src/generate/group/method/method_without_params.rs index 0a53c41..b705257 100644 --- a/qbittorrent-web-api-gen/src/generate/group/method/method_without_params.rs +++ b/qbittorrent-web-api-gen/src/generate/group/method/method_without_params.rs @@ -1,6 +1,6 @@ use quote::quote; -use super::{send_method_builder::SendMethodBuilder, return_type::create_return_type}; +use super::{return_type::create_return_type, send_method_builder::SendMethodBuilder}; use crate::parser; pub fn create_method_without_params( diff --git a/qbittorrent-web-api-gen/src/generate/group/method/mod.rs b/qbittorrent-web-api-gen/src/generate/group/method/mod.rs index f1948b9..3c2ea73 100644 --- a/qbittorrent-web-api-gen/src/generate/group/method/mod.rs +++ b/qbittorrent-web-api-gen/src/generate/group/method/mod.rs @@ -1,7 +1,7 @@ -mod send_method_builder; mod method_with_params; mod method_without_params; mod return_type; +mod send_method_builder; use crate::{generate::util, parser}; use case::CaseExt;