Skip to content

Commit 88ecf9a

Browse files
dylanowenLegNeato
authored andcommitted
updated deprecated trim_left (#24)
1 parent 0a779fa commit 88ecf9a

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
@@ -112,7 +112,7 @@ fn unquote_block_string(src: &str) -> Result<String, Error<Token, Token>> {
112112
debug_assert!(src.starts_with("\"\"\"") && src.ends_with("\"\"\""));
113113
let indent = src[3..src.len()-3].lines().skip(1)
114114
.filter_map(|line| {
115-
let trimmed = line.trim_left().len();
115+
let trimmed = line.trim_start().len();
116116
if trimmed > 0 {
117117
Some(line.len() - trimmed)
118118
} else {

0 commit comments

Comments
 (0)