Skip to content

Commit e94fffc

Browse files
committed
replace deprecated string functions in style script
1 parent 339fe22 commit e94fffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/style.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
117117
} else {
118118
prev_blank = false;
119119
}
120-
if line != line.trim_right() {
120+
if line != line.trim_end() {
121121
err.error(path, i, "trailing whitespace");
122122
}
123123
if line.contains("\t") {
@@ -139,7 +139,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
139139
}
140140
}
141141

142-
let line = line.trim_left();
142+
let line = line.trim_start();
143143
let is_pub = line.starts_with("pub ");
144144
let line = if is_pub {&line[4..]} else {line};
145145

0 commit comments

Comments
 (0)