mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 18:12:39 +00:00
chore: fix clippy warnings (#7476)
This commit is contained in:
parent
5248a711ff
commit
3da20d19a1
3 changed files with 4 additions and 4 deletions
|
@ -106,7 +106,7 @@ pub fn diff(orig_text: &str, edit_text: &str) -> Result<String, fmt::Error> {
|
|||
let split = s.split('\n').enumerate();
|
||||
for (i, s) in split {
|
||||
if i > 0 {
|
||||
orig.push_str("\n");
|
||||
orig.push('\n');
|
||||
}
|
||||
orig.push_str(&fmt_rem_text_highlight(s));
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ pub fn diff(orig_text: &str, edit_text: &str) -> Result<String, fmt::Error> {
|
|||
let split = s.split('\n').enumerate();
|
||||
for (i, s) in split {
|
||||
if i > 0 {
|
||||
edit.push_str("\n");
|
||||
edit.push('\n');
|
||||
}
|
||||
edit.push_str(&fmt_add_text_highlight(s));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue