Feature::from_str is not always needed
This commit is contained in:
parent
f876c9fac6
commit
128aa330ea
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ macro_rules! features {
|
|||
Feature::_last => unreachable!(),
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "std_detect_env_override")]
|
||||
pub(crate) fn from_str(s: &str) -> Result<Feature, ()> {
|
||||
match s {
|
||||
$($feature_lit => Ok(Feature::$feature),)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue