Cargo fmt fix

This commit is contained in:
Joel Wachsler 2022-07-11 02:09:17 +02:00
parent e617f8c662
commit 14e09d74a1
4 changed files with 13 additions and 6 deletions

View File

@ -4,7 +4,11 @@ use case::CaseExt;
use quote::{format_ident, quote}; use quote::{format_ident, quote};
use regex::Regex; 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<parser::ApiGroup>) -> proc_macro2::TokenStream { pub fn generate_groups(groups: Vec<parser::ApiGroup>) -> proc_macro2::TokenStream {
let gr = groups let gr = groups

View File

@ -1,8 +1,8 @@
mod group; mod group;
mod md_parser;
mod parser;
mod skeleton; mod skeleton;
mod util; mod util;
mod parser;
mod md_parser;
use case::CaseExt; use case::CaseExt;
use proc_macro::TokenStream; use proc_macro::TokenStream;

View File

@ -1,8 +1,8 @@
use crate::md_parser::TokenTree; 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 description;
mod parameters; mod parameters;

View File

@ -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<ReturnType> { pub fn get_return_type(content: &[MdContent]) -> Option<ReturnType> {
let table = content let table = content