File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ language: rust
22cache : cargo
33matrix :
44 include :
5- - rust : 1.34 .0
5+ - rust : 1.36 .0
66 - rust : stable
77 - rust : beta
88 - rust : nightly
Original file line number Diff line number Diff line change 1- # v0.3.0 (2019-06-XX )
1+ # v0.3.0 (2019-08-30 )
22
33## Breaking changes
44
5- ### Bump minimum rustc version to 1.34 by [ @TeXitoi ] ( https://github.com/TeXitoi )
6- Now ` rustc ` 1.34 is the minimum compiler version supported by ` structopt ` ,
5+ ### Bump minimum rustc version to 1.36 by [ @TeXitoi ] ( https://github.com/TeXitoi )
6+ Now ` rustc ` 1.36 is the minimum compiler version supported by ` structopt ` ,
77it likely won't work with older compilers.
88
99### Remove "nightly" feature
Original file line number Diff line number Diff line change @@ -118,18 +118,11 @@ fn gen_augmentation(
118118
119119 let ( parser, f) = attrs. parser ( ) ;
120120 let validator = match * * parser {
121- // clippy v0.0.212 (1fac380 2019-02-20) produces `redundant_closure` warnings
122- // for `.map_err(|e| e.to_string())` when `e` is a reference
123- // (e.g. `&'static str`). To suppress the warning, we have to write
124- // `|e| (&e).to_string()` since `e` may be a reference or non-reference.
125- // When Rust 1.35 is released, this hack will be obsolete because the next
126- // stable clippy is going to stop triggering the warning for macros.
127- // https://github.com/rust-lang/rust-clippy/pull/3816
128121 Parser :: TryFromStr => quote ! {
129122 . validator( |s| {
130123 #f( & s)
131124 . map( |_: #convert_type| ( ) )
132- . map_err( |e| ( & e ) . to_string( ) )
125+ . map_err( |e| e . to_string( ) )
133126 } )
134127 } ,
135128 Parser :: TryFromOsStr => quote ! {
You can’t perform that action at this time.
0 commit comments