mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Oops, these aren't std-only
This commit is contained in:
parent
525703358b
commit
3458288946
1 changed files with 2 additions and 6 deletions
|
@ -37,7 +37,7 @@ pub struct Target<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> 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 {
|
pub const fn new(triple: &'a str, has_std: bool) -> Self {
|
||||||
Self { triple, has_std }
|
Self { triple, has_std }
|
||||||
|
@ -52,11 +52,7 @@ impl<'a> Target<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn and_features(&self, features: &str) -> String {
|
pub fn and_features(&self, features: &str) -> String {
|
||||||
if self.has_std {
|
format!("{},{}", Self::DEFAULT_FEATURES, features)
|
||||||
format!("{},{}", Self::STD_FEATURES, features)
|
|
||||||
} else {
|
|
||||||
features.to_string()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue