mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 12:16:17 +00:00
refactor/join ~ fix cargo clippy
complaint (clippy::needless_borrow)
This commit is contained in:
parent
c66d67a0b9
commit
4a09c72fe7
1 changed files with 4 additions and 4 deletions
|
@ -328,8 +328,8 @@ impl<'a> State<'a> {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
repr.print_field(key);
|
repr.print_field(key);
|
||||||
repr.print_fields(&line1, self.key, self.max_fields);
|
repr.print_fields(line1, self.key, self.max_fields);
|
||||||
repr.print_fields(&line2, other.key, other.max_fields);
|
repr.print_fields(line2, other.key, other.max_fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!();
|
println!();
|
||||||
|
@ -611,7 +611,7 @@ fn exec(file1: &str, file2: &str, settings: &Settings) -> i32 {
|
||||||
|
|
||||||
let mut state1 = State::new(
|
let mut state1 = State::new(
|
||||||
FileNum::File1,
|
FileNum::File1,
|
||||||
&file1,
|
file1,
|
||||||
&stdin,
|
&stdin,
|
||||||
settings.key1,
|
settings.key1,
|
||||||
settings.print_unpaired,
|
settings.print_unpaired,
|
||||||
|
@ -619,7 +619,7 @@ fn exec(file1: &str, file2: &str, settings: &Settings) -> i32 {
|
||||||
|
|
||||||
let mut state2 = State::new(
|
let mut state2 = State::new(
|
||||||
FileNum::File2,
|
FileNum::File2,
|
||||||
&file2,
|
file2,
|
||||||
&stdin,
|
&stdin,
|
||||||
settings.key2,
|
settings.key2,
|
||||||
settings.print_unpaired,
|
settings.print_unpaired,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue