mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
join: rename f variable to file_buf
This commit is contained in:
parent
94f6702ba5
commit
5dff5f2f73
1 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ impl<'a> State<'a> {
|
||||||
line_ending: LineEnding,
|
line_ending: LineEnding,
|
||||||
print_unpaired: bool,
|
print_unpaired: bool,
|
||||||
) -> Result<State<'a>, JoinError> {
|
) -> Result<State<'a>, JoinError> {
|
||||||
let f = if name == "-" {
|
let file_buf = if name == "-" {
|
||||||
Box::new(stdin.lock()) as Box<dyn BufRead>
|
Box::new(stdin.lock()) as Box<dyn BufRead>
|
||||||
} else {
|
} else {
|
||||||
match File::open(name) {
|
match File::open(name) {
|
||||||
|
@ -355,7 +355,7 @@ impl<'a> State<'a> {
|
||||||
file_name: name,
|
file_name: name,
|
||||||
file_num,
|
file_num,
|
||||||
print_unpaired,
|
print_unpaired,
|
||||||
lines: f.split(line_ending as u8),
|
lines: file_buf.split(line_ending as u8),
|
||||||
max_len: 1,
|
max_len: 1,
|
||||||
seq: Vec::new(),
|
seq: Vec::new(),
|
||||||
line_num: 0,
|
line_num: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue