1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

join: rename f variable to file_buf

This commit is contained in:
cswn 2023-11-15 13:52:01 +01:00
parent 94f6702ba5
commit 5dff5f2f73

View file

@ -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,