1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +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,
print_unpaired: bool,
) -> Result<State<'a>, JoinError> {
let f = if name == "-" {
let file_buf = if name == "-" {
Box::new(stdin.lock()) as Box<dyn BufRead>
} else {
match File::open(name) {
@ -355,7 +355,7 @@ impl<'a> State<'a> {
file_name: name,
file_num,
print_unpaired,
lines: f.split(line_ending as u8),
lines: file_buf.split(line_ending as u8),
max_len: 1,
seq: Vec::new(),
line_num: 0,