From b7f5197dd3546be6d8e5837aa573ed249421df58 Mon Sep 17 00:00:00 2001 From: Dylan Owen Date: Sat, 6 Jul 2019 22:44:50 -0700 Subject: [PATCH] updated deprecated trim_left --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index 4f9e7d2..e8a8530 100644 --- a/src/common.rs +++ b/src/common.rs @@ -112,7 +112,7 @@ fn unquote_block_string(src: &str) -> Result> { debug_assert!(src.starts_with("\"\"\"") && src.ends_with("\"\"\"")); let indent = src[3..src.len()-3].lines().skip(1) .filter_map(|line| { - let trimmed = line.trim_left().len(); + let trimmed = line.trim_start().len(); if trimmed > 0 { Some(line.len() - trimmed) } else {