Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Mar 23, 2024
1 parent b9147cc commit f18bb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/string.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
//! A clone-on-write, small-string-optimized alternative to [`String`].
use alloc::borrow::Cow;
use alloc::string::String;
use core::borrow::Borrow;
use core::cmp::Ordering;
use core::fmt::{self, Debug, Display, Formatter, Write};
use core::hash::{Hash, Hasher};
use core::ops::{Add, AddAssign, Deref};

#[cfg(not(feature = "std"))]
use alloc::string::String;

use crate::dynamic::{DynamicVec, InlineVec};

/// Create a new [`EcoString`] from a format string.
Expand Down
4 changes: 3 additions & 1 deletion src/vec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! A clone-on-write alternative to [`Vec`].
use alloc::vec::Vec;
use core::alloc::Layout;
use core::borrow::Borrow;
use core::cmp::Ordering;
Expand All @@ -11,6 +10,9 @@ use core::mem;
use core::ops::Deref;
use core::ptr::{self, NonNull};

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

use crate::sync::atomic::{self, AtomicUsize, Ordering::*};

/// Create a new [`EcoVec`] with the given elements.
Expand Down

0 comments on commit f18bb82

Please sign in to comment.