We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e14ab9 commit 1e0e88eCopy full SHA for 1e0e88e
1 file changed
src/auth_file_watcher.rs
@@ -40,13 +40,10 @@ impl AuthFileWatcher {
40
41
fn open_existing_file(&mut self) {
42
self.open_file();
43
- match &mut self.reader {
44
- Some(reader) => {
45
- reader.seek_to_end().unwrap_or_else(|error| {
46
- eprintln!("Error seeking to end of file: {}", error);
47
- });
48
- }
49
- None => {}
+ if let Some(reader) = &mut self.reader {
+ reader.seek_to_end().unwrap_or_else(|error| {
+ eprintln!("Error seeking to end of file: {}", error);
+ });
50
}
51
52
@@ -113,11 +110,8 @@ impl AuthFileWatcher {
113
110
return;
114
111
115
112
116
117
118
- reader.read_new_lines(parse_line);
119
120
+ reader.read_new_lines(parse_line);
121
};
122
123
0 commit comments