From 069d3404bfc33afed91438fe2028a7caad1a2ecc Mon Sep 17 00:00:00 2001 From: koe Date: Sun, 1 Sep 2024 23:14:45 -0500 Subject: [PATCH] build fixes --- src/buffer.rs | 2 ++ src/buffer_line.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/buffer.rs b/src/buffer.rs index 46c8215..cd3efbd 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -1,5 +1,7 @@ // SPDX-License-Identifier: MIT OR Apache-2.0 +#[cfg(not(feature = "std"))] +use alloc::{string::String, vec::Vec}; use core::{cmp, fmt}; use unicode_segmentation::UnicodeSegmentation; diff --git a/src/buffer_line.rs b/src/buffer_line.rs index ee10acc..015c5e8 100644 --- a/src/buffer_line.rs +++ b/src/buffer_line.rs @@ -1,3 +1,5 @@ +#[cfg(not(feature = "std"))] +use alloc::{string::String, vec::Vec}; use core::mem; use crate::{