Skip to content

Commit bfa16ac

Browse files
committed
Still NanoS refs to be removed
1 parent 38c2ee3 commit bfa16ac

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

ledger_secure_sdk_sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl SDKBuilder<'_> {
322322
println!("cargo:rustc-env=API_LEVEL={}", self.api_level);
323323
println!("cargo:warning=API_LEVEL is {}", self.api_level);
324324
}
325-
None => Err(SDKBuildError::InvalidAPILevel),
325+
None => return Err(SDKBuildError::InvalidAPILevel),
326326
}
327327

328328
// Export other SDK infos into env for 'infos.rs'

ledger_secure_sdk_sys/src/infos.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ macro_rules! const_cstr {
1717
};
1818
}
1919

20-
#[cfg(not(target_os = "nanos"))]
2120
const fn const_parse_api_level(x: &str) -> u8 {
2221
let a = x.as_bytes();
2322
let mut res = a[0] - b'0';
@@ -32,11 +31,9 @@ const fn const_parse_api_level(x: &str) -> u8 {
3231

3332
/// Expose the API_LEVEL
3433
#[used]
35-
#[cfg(not(target_os = "nanos"))]
3634
static API_LEVEL: u8 = const_parse_api_level(env!("API_LEVEL"));
3735

3836
// Store metadata in the ELF file
39-
#[cfg(not(target_os = "nanos"))]
4037
const_cstr!(ELF_API_LEVEL, "ledger.api_level", env!("API_LEVEL"));
4138

4239
const_cstr!(ELF_TARGET, "ledger.target", env!("TARGET"));

0 commit comments

Comments
 (0)