Skip to content

Commit a30a797

Browse files
committed
Guard with cfg...
cargo-test-sbf (governance/addin-mock/program, governance/program): error[E0658]: use of unstable library feature 'once_cell' --> src/abi_example.rs:559:36 | 559 | impl<T: AbiExample> AbiExample for std::sync::OnceLock<T> { | ^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #74465 <rust-lang/rust#74465> for more information = help: add `#![feature(once_cell)]` to the crate attributes to enable
1 parent e769318 commit a30a797

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frozen-abi/src/abi_example.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ impl<O: AbiEnumVisitor, E: AbiEnumVisitor> AbiEnumVisitor for Result<O, E> {
556556
}
557557
}
558558

559+
#[cfg(not(target_os = "solana"))]
559560
impl<T: AbiExample> AbiExample for std::sync::OnceLock<T> {
560561
fn example() -> Self {
561562
Self::from(T::example())

0 commit comments

Comments
 (0)