Skip to content

Commit

Permalink
Fix Rust CI failure on using 'std' module
Browse files Browse the repository at this point in the history
  • Loading branch information
candysonya committed Jan 10, 2025
1 parent ceb2218 commit 0b5d56c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rust/flatbuffers/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ use std::borrow::Cow;
use core::ops::Range;
use core::option::Option;

#[cfg(not(feature = "std"))]
use alloc::borrow::Cow;
#[cfg(feature= "std")]
use std::borrow::Cow;

#[cfg(all(nightly, not(feature = "std")))]
use core::error::Error;
#[cfg(feature = "std")]
Expand Down

0 comments on commit 0b5d56c

Please sign in to comment.