mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-30 12:21:58 +00:00
reformat imports
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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()?;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user