Fix compiling for all features.

This commit is contained in:
Stephen Chung
2020-04-28 19:39:28 +08:00
parent d3a97dc86b
commit 6351c07bc6
5 changed files with 8 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ fn sub_string(s: &mut String, start: INT, len: INT) -> String {
len as usize
};
chars[offset..][..len].into_iter().collect::<String>()
chars[offset..][..len].into_iter().collect()
}
fn crop_string(s: &mut String, start: INT, len: INT) {
let offset = if s.is_empty() || len <= 0 {