aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2023-04-15 12:38:17 +0200
committerdatdenkikniet <jcdra1@gmail.com>2023-04-15 12:38:17 +0200
commit3458288946a7243bdf94cee8e5a75e30663cd35b (patch)
tree34e708ff29cdc88cbc89b090e4073c33ebe3fbe4 /xtask/src/main.rs
parent525703358bf52b74a01d9b0c04680d33621d60cd (diff)
Oops, these aren't std-only
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index a50657d..da61d8f 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -37,7 +37,7 @@ pub struct Target<'a> {
}
impl<'a> Target<'a> {
- const STD_FEATURES: &str = "test-critical-section";
+ const DEFAULT_FEATURES: &str = "test-critical-section";
pub const fn new(triple: &'a str, has_std: bool) -> Self {
Self { triple, has_std }
@@ -52,11 +52,7 @@ impl<'a> Target<'a> {
}
pub fn and_features(&self, features: &str) -> String {
- if self.has_std {
- format!("{},{}", Self::STD_FEATURES, features)
- } else {
- features.to_string()
- }
+ format!("{},{}", Self::DEFAULT_FEATURES, features)
}
}