Fix no_std tests

This commit is contained in:
Jeremy Soller 2024-02-01 11:35:18 -07:00
parent b2fb02c7ad
commit 9bbf9e5c23
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -1,7 +1,10 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
#[cfg(not(feature = "std"))]
use alloc::string::{String, ToString};
use alloc::{
string::{String, ToString},
vec::Vec,
};
use core::{cmp, iter::once};
use unicode_segmentation::UnicodeSegmentation;