fix some typos

This commit is contained in:
bunnie 2022-10-23 23:20:08 +08:00
parent 901525e3c9
commit 1b70801861
2 changed files with 2 additions and 2 deletions

View file

@ -259,7 +259,7 @@ impl Builder {
}
/// test if a feature is present
pub fn has_feature(&self, feature: &str) -> bool {
self.features.contains(feature)
self.features.contains(&feature.to_string())
}
/// add a feature to be passed on to just the loader
pub fn add_loader_feature<'a>(&'a mut self, feature: &str) -> &'a mut Builder {

View file

@ -273,7 +273,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
Some("perf-image") => {
// `--feature vaultperf` will make `vault` the performance manager, in exclusion of shellchat
if !build.contains("shellperf") && !builder.contains("vaultperf") {
if !builder.has_feature("shellperf") && !builder.has_feature("vaultperf") {
// select `shellchat` as the performance manager by default.
builder.add_feature("shellperf");
}