fn paperclip_attributes(attr: TokenStream) -> TokenStream {
        let mut attr = parse_macro_input!(attr as syn::AttributeArgs);
        if attr.len() < 2 {
            TokenStream::new()
        } else {
            // remove the URI path
            attr.remove(0);
            let mut paperclip_attr = "".to_string();
            for i in attr {
                paperclip_attr.push_str(&format!(
                    "{},",
                    i.into_token_stream().to_string()
                ));
            }
            paperclip_attr.parse().unwrap()
        }
    }
// removes the URI from the attributes and collects the rest
// so they can be used with the paperclip::actix::api_v2_operation
removes the URI from the attributes and collects the rest
so they can be used with the paperclip::actix::api_v2_operation
removes the URI from the attributes and collects the rest so they can be used with the paperclip :: actix :: api_v2_operation
fn paperclip_attributes(attr: TokenStream) -> TokenStream {
        let mut attr = parse_macro_input!(attr as syn::AttributeArgs);
        if attr.len() < 2 {
            TokenStream::new()
        } else {
            // remove the URI path
            attr.remove(0);
            let mut paperclip_attr = "".to_string();
            for i in attr {
                paperclip_attr.push_str(&format!(
                    "{},",
                    i.into_token_stream().to_string()
                ));
            }
            paperclip_attr.parse().unwrap()
        }
    }
fn paperclip_attributes ( attr : TokenStream ) -> TokenStream { let mut attr = parse_macro_input ! ( attr as syn AttributeArgs ) ; if attr . len ( ) < 2 { TokenStream :: new ( ) } else { // remove the URI path attr . remove ( 0 ) ; let mut paperclip_attr = " " . to_string ( ) ; for i in attr { paperclip_attr . push_str ( & format ! ( " " i into_token_stream ( ) to_string ( ) ) ) ; } paperclip_attr . parse ( ) . unwrap ( ) } }
removes the URI from the attributes and collects the rest
so they can be used with the paperclip::actix::api_v2_operation
removes the URI from the attributes and collects the rest so they can be used with the paperclip :: actix :: api_v2_operation
attr
TokenStream