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