Skip to content

Commit 9176728

Browse files
committed
Replace deprecated trim_left with trim_start
1 parent 9c96732 commit 9176728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn unquote_block_string<'a>(src: &'a str) -> Result<BorrowedStr<'a>, Error<Token
114114
debug_assert!(src.starts_with("\"\"\"") && src.ends_with("\"\"\""));
115115
let indent = src[3..src.len()-3].lines().skip(1)
116116
.filter_map(|line| {
117-
let trimmed = line.trim_left().len();
117+
let trimmed = line.trim_start().len();
118118
if trimmed > 0 {
119119
Some(line.len() - trimmed)
120120
} else {

0 commit comments

Comments
 (0)