aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/slice.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:42:37 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:42:37 +0200
commit9e157f453ae674a9f86601142fde91b85485883a (patch)
tree9ffa787646f5026a2c7d28dc5b1b2246545ae000 /src/util/slice.rs
parentfc0f0f9f15574b4f80bda8249c0763d5865cb8b2 (diff)
downloadmarkdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.gz
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.bz2
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.zip
Add `no_std + alloc`
Diffstat (limited to 'src/util/slice.rs')
-rw-r--r--src/util/slice.rs3
1 files changed, 2 insertions, 1 deletions
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)]