one_at_a_time_please_derive 1.0.1

Derive macro used for serialising calls to functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ::proc_macro2::TokenStream;
use ::std::iter::Iterator;

use crate::ParseError;

pub fn parse_attr(attr: TokenStream) -> Result<(), ParseError> {
    let mut iter = attr.into_iter();

    match iter.next() {
        None => Ok(()),
        Some(_) => Err(ParseError::ContentFound),
    }
}