From 9e157f453ae674a9f86601142fde91b85485883a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Aug 2022 17:42:37 +0200 Subject: Add `no_std + alloc` --- src/util/slice.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/slice.rs') diff --git a/src/util/slice.rs b/src/util/slice.rs index be2a381..5dcc352 100644 --- a/src/util/slice.rs +++ b/src/util/slice.rs @@ -2,7 +2,8 @@ use crate::constant::TAB_SIZE; use crate::event::{Event, Kind, Point}; -use std::str; +use alloc::string::String; +use core::str; /// A range between two points. #[derive(Debug)] -- cgit