File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ fn to_cfg_overrides(specs: &Vec<String>) -> CfgOverrides {
136
136
let mut disabled_cfgs = Vec :: new ( ) ;
137
137
let mut has_test_explicitly_enabled = false ;
138
138
for spec in specs {
139
- if spec. starts_with ( "-" ) {
139
+ if let Some ( spec) = spec . strip_prefix ( "-" ) {
140
140
disabled_cfgs. push ( to_cfg_override ( & spec[ 1 ..] ) ) ;
141
141
} else {
142
142
enabled_cfgs. push ( to_cfg_override ( spec) ) ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl<'de, T: From<String>> Visitor<'de> for VectorVisitor<T> {
41
41
/// deserialize into a vector of `T` either of:
42
42
/// * a sequence of elements serializable into `String`s, or
43
43
/// * a single element serializable into `String`, then split on `,` and `\n`
44
+ ///
44
45
/// This is required to be in scope when the `extractor_cli_config` macro is used.
45
46
pub ( crate ) fn deserialize_newline_or_comma_separated < ' a , D : Deserializer < ' a > , T : From < String > > (
46
47
deserializer : D ,
You can’t perform that action at this time.
0 commit comments