reformat imports

This commit is contained in:
Aiden McClelland
2021-04-07 21:57:02 -06:00
parent dd22dfacc2
commit 64d5d40765
10 changed files with 48 additions and 34 deletions

View File

@@ -1,14 +1,14 @@
use super::parse::*;
use super::*;
use std::collections::HashSet;
use proc_macro2::*;
use quote::*;
use std::collections::HashSet;
use syn::{
fold::Fold,
punctuated::Punctuated,
spanned::Spanned,
token::{Comma, Where},
};
use syn::fold::Fold;
use syn::punctuated::Punctuated;
use syn::spanned::Spanned;
use syn::token::{Comma, Where};
use super::parse::*;
use super::*;
fn build_app(name: LitStr, opt: &mut Options, params: &mut [ParamType]) -> TokenStream {
let about = opt.common().about.clone().into_iter();

View File

@@ -1,6 +1,7 @@
use super::*;
use syn::spanned::Spanned;
use super::*;
pub fn parse_command_attr(args: AttributeArgs) -> Result<Options> {
let mut opt = Options::Leaf(Default::default());
for arg in args {

View File

@@ -15,4 +15,4 @@ pub use command::build::build as build_command;
pub use rpc_server::build::build as build_rpc_server;
pub use rpc_server::RpcServerArgs;
pub use run_cli::build::build as build_run_cli;
pub use run_cli::RunCliArgs;
pub use run_cli::RunCliArgs;

View File

@@ -1,8 +1,9 @@
use super::*;
use proc_macro2::TokenStream;
use quote::quote;
use syn::spanned::Spanned;
use super::*;
pub fn build(args: RpcServerArgs) -> TokenStream {
let mut command = args.command;
let arguments = std::mem::replace(

View File

@@ -1,6 +1,7 @@
use super::*;
use syn::parse::{Parse, ParseStream};
use super::*;
impl Parse for RpcServerArgs {
fn parse(input: ParseStream) -> Result<Self> {
let command = input.parse()?;

View File

@@ -1,8 +1,9 @@
use super::*;
use proc_macro2::TokenStream;
use quote::quote;
use syn::spanned::Spanned;
use super::*;
pub fn build(args: RunCliArgs) -> TokenStream {
let mut command_handler = args.command.clone();
let mut arguments = std::mem::replace(

View File

@@ -1,6 +1,7 @@
use super::*;
use syn::parse::{Parse, ParseStream};
use super::*;
impl Parse for MakeSeed {
fn parse(input: ParseStream) -> Result<Self> {
let matches_ident = input.parse()?;