Skip to content

Commit

Permalink
Remove unnecessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Jun 12, 2020
1 parent 2b2d941 commit 9a4b981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions structopt-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,10 @@ fn gen_from_subcommand(
}

(external, None) => {
::std::option::Option::Some(#name::#var_name({
::std::option::Option::Some(#name::#var_name(
::std::iter::once(#str_ty::from(external))
.collect::<::std::vec::Vec<_>>()
}))
))
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion structopt-derive/src/spanned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<T: ToTokens> ToTokens for Sp<T> {
// this is the simplest way out of correct ones to change span on
// arbitrary token tree I can come up with
let tt = self.val.to_token_stream().into_iter().map(|mut tt| {
tt.set_span(self.span.clone());
tt.set_span(self.span);
tt
});

Expand Down

0 comments on commit 9a4b981

Please sign in to comment.