mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix some typos
This commit is contained in:
parent
901525e3c9
commit
1b70801861
2 changed files with 2 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ impl Builder {
|
||||||
}
|
}
|
||||||
/// test if a feature is present
|
/// test if a feature is present
|
||||||
pub fn has_feature(&self, feature: &str) -> bool {
|
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
|
/// 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 {
|
pub fn add_loader_feature<'a>(&'a mut self, feature: &str) -> &'a mut Builder {
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
}
|
}
|
||||||
Some("perf-image") => {
|
Some("perf-image") => {
|
||||||
// `--feature vaultperf` will make `vault` the performance manager, in exclusion of shellchat
|
// `--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.
|
// select `shellchat` as the performance manager by default.
|
||||||
builder.add_feature("shellperf");
|
builder.add_feature("shellperf");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue