Skip to content

Commit c9f19b4

Browse files
committed
Add cfg oom hangling to vecdeque import
1 parent f50c99e commit c9f19b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

library/alloc/src/string.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ use crate::alloc::Allocator;
6161
#[cfg(not(no_global_oom_handling))]
6262
use crate::borrow::{Cow, ToOwned};
6363
use crate::boxed::Box;
64-
use crate::collections::{TryReserveError, VecDeque};
64+
use crate::collections::{TryReserveError};
65+
#[cfg(not(no_global_oom_handling))]
66+
use crate::collections::VecDeque;
6567
use crate::str::{self, CharIndices, Chars, Utf8Error, from_utf8_unchecked_mut};
6668
#[cfg(not(no_global_oom_handling))]
6769
use crate::str::{FromStr, from_boxed_utf8_unchecked};

0 commit comments

Comments
 (0)