diff options
author | Daniel Mueller <deso@posteo.net> | 2019-08-15 08:11:13 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-08-15 08:11:13 -0700 |
commit | 99234b3e77889e370a24657aee729d43ff457156 (patch) | |
tree | b556715d14a4294c9bdeb11a8d0289172ccd84ac /libc/ci/style.rs | |
parent | 5e380138e7fa45997565cdcec51e913c471db431 (diff) | |
download | nitrocli-99234b3e77889e370a24657aee729d43ff457156.tar.gz nitrocli-99234b3e77889e370a24657aee729d43ff457156.tar.bz2 |
Update libc crate to 0.2.62
This change updates the libc crate to version 0.2.62.
Import subrepo libc/:libc at 37f8f8dc233a79ea9cc89b102aa30ff6e402fe94
Diffstat (limited to 'libc/ci/style.rs')
-rw-r--r-- | libc/ci/style.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/ci/style.rs b/libc/ci/style.rs index 481f57f..70fc0a0 100644 --- a/libc/ci/style.rs +++ b/libc/ci/style.rs @@ -117,7 +117,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) { } else { prev_blank = false; } - if line != line.trim_right() { + if line != line.trim_end() { err.error(path, i, "trailing whitespace"); } if line.contains("\t") { @@ -139,7 +139,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) { } } - let line = line.trim_left(); + let line = line.trim_start(); let is_pub = line.starts_with("pub "); let line = if is_pub {&line[4..]} else {line}; |