From 3a79df9523429c0ee36825328455fff9dfb4669a Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 16 Oct 2021 16:36:52 +0200 Subject: format code --- macros/src/macro_types/mod.rs | 3 ++- macros/src/macro_types/privmsg.rs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'macros') diff --git a/macros/src/macro_types/mod.rs b/macros/src/macro_types/mod.rs index 2910707..0afec11 100644 --- a/macros/src/macro_types/mod.rs +++ b/macros/src/macro_types/mod.rs @@ -24,7 +24,8 @@ impl Parse for Items { let mut items: Vec = Vec::new(); while !input.is_empty() { - if input.peek(syn::Ident) && input.peek2(syn::token::Paren) || input.peek(Token![async]) { + if input.peek(syn::Ident) && input.peek2(syn::token::Paren) || input.peek(Token![async]) + { items.push(input.parse()?) } else { return Err(input.error("line was not of expected format")); diff --git a/macros/src/macro_types/privmsg.rs b/macros/src/macro_types/privmsg.rs index 247d1b7..4cc1d5e 100644 --- a/macros/src/macro_types/privmsg.rs +++ b/macros/src/macro_types/privmsg.rs @@ -1,4 +1,7 @@ -use syn::{Expr, Token, parse::{Parse, ParseStream}}; +use syn::{ + parse::{Parse, ParseStream}, + Expr, Token, +}; pub struct Item { pub msg: Expr, -- cgit v1.2.3