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 6a903f1 commit ceb2218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/flatbuffers/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ use crate::follow::Follow;
use crate::{ForwardsUOffset, SOffsetT, SkipSizePrefix, UOffsetT, VOffsetT, Vector, SIZE_UOFFSET};
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
#[cfg(feature= "std")]
use std::borrow::Cow;
use core::ops::Range;
use core::option::Option;

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

Expand Down

0 comments on commit ceb2218

Please sign in to comment.