Skip to content

Commit 3184132

Browse files
committed
Don't use std:: for certain types
1 parent 9cca35a commit 3184132

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/core/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ pub enum Style {
12351235
#[derive(Clone, Debug, PartialEq)]
12361236
#[allow(missing_docs)]
12371237
pub struct FormattedSpan {
1238-
pub range: std::ops::Range<usize>,
1238+
pub range: core::ops::Range<usize>,
12391239
pub style: Style,
12401240
}
12411241

internal/core/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ pub fn open_url(url: &str) {
185185
}
186186
}
187187

188-
pub fn escape_markdown(text: &str) -> std::string::String {
189-
let mut out = std::string::String::with_capacity(text.len());
188+
pub fn escape_markdown(text: &str) -> alloc::string::String {
189+
let mut out = alloc::string::String::with_capacity(text.len());
190190

191191
for c in text.chars() {
192192
match c {

0 commit comments

Comments
 (0)