Rustfmt
diff --git a/src/lib.rs b/src/lib.rs
index 7173b6f..d80f41b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,54 +19,20 @@
mod escape;
mod attr;
-pub use attr::{
- Attribute,
- AttrStyle,
- MetaItem,
-};
+pub use attr::{Attribute, AttrStyle, MetaItem};
mod data;
-pub use data::{
- Discriminant,
- Field,
- Variant,
- VariantData,
- Visibility,
-};
+pub use data::{Discriminant, Field, Variant, VariantData, Visibility};
#[cfg(feature = "full")]
mod expr;
#[cfg(feature = "full")]
-pub use expr::{
- Arm,
- BinOp,
- BindingMode,
- Block,
- BlockCheckMode,
- CaptureBy,
- Expr,
- FieldPat,
- Local,
- MacStmtStyle,
- Pat,
- RangeLimits,
- Stmt,
- UnOp,
-};
+pub use expr::{Arm, BinOp, BindingMode, Block, BlockCheckMode, CaptureBy, Expr, FieldPat, Local,
+ MacStmtStyle, Pat, RangeLimits, Stmt, UnOp};
mod generics;
-pub use generics::{
- Generics,
- Lifetime,
- LifetimeDef,
- TraitBoundModifier,
- TyParam,
- TyParamBound,
- WhereBoundPredicate,
- WhereClause,
- WherePredicate,
- WhereRegionPredicate,
-};
+pub use generics::{Generics, Lifetime, LifetimeDef, TraitBoundModifier, TyParam, TyParamBound,
+ WhereBoundPredicate, WhereClause, WherePredicate, WhereRegionPredicate};
#[cfg(feature = "full")]
mod krate;
@@ -74,81 +40,33 @@
pub use krate::Crate;
mod ident;
-pub use ident::{
- Ident,
-};
+pub use ident::Ident;
#[cfg(feature = "full")]
mod item;
#[cfg(feature = "full")]
-pub use item::{
- Abi,
- Constness,
- Defaultness,
- FnArg,
- FnDecl,
- ForeignItemKind,
- ForeignItem,
- ForeignMod,
- ImplItem,
- ImplItemKind,
- ImplPolarity,
- Item,
- ItemKind,
- MethodSig,
- PathListItem,
- TraitItem,
- TraitItemKind,
- Unsafety,
- ViewPath,
-};
+pub use item::{Abi, Constness, Defaultness, FnArg, FnDecl, ForeignItemKind, ForeignItem,
+ ForeignMod, ImplItem, ImplItemKind, ImplPolarity, Item, ItemKind, MethodSig,
+ PathListItem, TraitItem, TraitItemKind, Unsafety, ViewPath};
mod lit;
-pub use lit::{
- FloatTy,
- IntTy,
- Lit,
- StrStyle,
-};
+pub use lit::{FloatTy, IntTy, Lit, StrStyle};
#[cfg(feature = "full")]
mod mac;
#[cfg(feature = "full")]
-pub use mac::{
- BinOpToken,
- DelimToken,
- Delimited,
- Mac,
- Token,
- TokenTree,
-};
+pub use mac::{BinOpToken, DelimToken, Delimited, Mac, Token, TokenTree};
mod macro_input;
-pub use macro_input::{
- Body,
- MacroInput,
-};
+pub use macro_input::{Body, MacroInput};
#[cfg(feature = "parsing")]
mod space;
mod ty;
-pub use ty::{
- AngleBracketedParameterData,
- BareFnArg,
- BareFnTy,
- FunctionRetTy,
- MutTy,
- Mutability,
- ParenthesizedParameterData,
- Path,
- PathParameters,
- PathSegment,
- PolyTraitRef,
- QSelf,
- Ty,
- TypeBinding,
-};
+pub use ty::{AngleBracketedParameterData, BareFnArg, BareFnTy, FunctionRetTy, MutTy, Mutability,
+ ParenthesizedParameterData, Path, PathParameters, PathSegment, PolyTraitRef, QSelf,
+ Ty, TypeBinding};
#[cfg(feature = "aster")]
pub mod aster;
@@ -199,7 +117,10 @@
unwrap("where clause", generics::parsing::where_clause, input)
}
- fn unwrap<T>(name: &'static str, f: fn(&str) -> IResult<&str, T>, input: &str) -> Result<T, String> {
+ fn unwrap<T>(name: &'static str,
+ f: fn(&str) -> IResult<&str, T>,
+ input: &str)
+ -> Result<T, String> {
match f(input) {
IResult::Done(rest, t) => {
if rest.is_empty() {