From 9bbf9e5c239c15b89ada3b897f7baa93179f29af Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 1 Feb 2024 11:35:18 -0700 Subject: [PATCH] Fix no_std tests --- src/edit/editor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/edit/editor.rs b/src/edit/editor.rs index 1797875..1fa58db 100644 --- a/src/edit/editor.rs +++ b/src/edit/editor.rs @@ -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;