mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 01:54:23 +03:00
clippy: fix manual_swap
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
fae079057d
commit
27c3d7b71b
@ -95,9 +95,7 @@ impl Error {
|
||||
|
||||
fn underline(mut start: usize, mut end: usize) -> String {
|
||||
if start > end {
|
||||
let tmp = start;
|
||||
start = end;
|
||||
end = tmp;
|
||||
std::mem::swap(&mut start, &mut end)
|
||||
}
|
||||
|
||||
let mut underline = String::new();
|
||||
|
Loading…
Reference in New Issue
Block a user