Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore expected unnecessary_wraps pedantic clippy lint
warning: this function's return value is unnecessarily wrapped by `Result` --> impl/src/fmt.rs:122:1 | 122 | / fn explicit_named_args(input: ParseStream) -> Result<Set<Ident>> { 123 | | let ahead = input.fork(); 124 | | if let Ok(set) = try_explicit_named_args(&ahead) { 125 | | input.advance_to(&ahead); ... | 136 | | Ok(Set::new()) 137 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps = note: `-W clippy::unnecessary-wraps` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_wraps)]` help: remove `Result` from the return type... | 122 | fn explicit_named_args(input: ParseStream) -> std::collections::BTreeSet<proc_macro2::Ident> { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help: ...and then change returning expressions | 126 ~ return set; 127 | } ... 131 | input.advance_to(&ahead); 132 ~ return set; 133 | } 134 | 135 | input.parse::<TokenStream>().unwrap(); 136 ~ Set::new() |
- Loading branch information