diff options
author | Axetroy <axetroy.dev@gmail.com> | 2019-12-23 22:59:44 +0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-23 09:59:44 -0500 |
commit | 3bb15ceaeaf5cd349afcb2e2d43374efd420aaef (patch) | |
tree | b169369521f66bbca1c71a96f0059bef6d61fe00 /cli/fmt_errors.rs | |
parent | e88c801e76c16d4c0a92702e248cf811038ed4ab (diff) |
Upgrades rust to 1.40.0 (#3542)
Diffstat (limited to 'cli/fmt_errors.rs')
-rw-r--r-- | cli/fmt_errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/fmt_errors.rs b/cli/fmt_errors.rs index 84fcf5b43..8b28d7bb4 100644 --- a/cli/fmt_errors.rs +++ b/cli/fmt_errors.rs @@ -66,7 +66,7 @@ pub fn format_maybe_source_line( assert!(end_column.is_some()); let line = (1 + line_number.unwrap()).to_string(); let line_color = colors::black_on_white(line.to_string()); - let line_len = line.clone().len(); + let line_len = line.len(); let line_padding = colors::black_on_white(format!("{:indent$}", "", indent = line_len)) .to_string(); |