Format fixes (#9)

```
cargo fmt --all -- --check
```

Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
This commit is contained in:
Aravinda Vishwanathapura 2020-08-21 12:31:50 +05:30 committed by GitHub
parent 811f7783ab
commit 49b988cdb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,14 +96,12 @@ impl LogWatcher {
if len > 0 { if len > 0 {
self.pos += len as u64; self.pos += len as u64;
self.reader.seek(SeekFrom::Start(self.pos)).unwrap(); self.reader.seek(SeekFrom::Start(self.pos)).unwrap();
match callback(line.replace("\n", "")) match callback(line.replace("\n", "")) {
{
LogWatcherAction::SeekToEnd => { LogWatcherAction::SeekToEnd => {
println!("SeekToEnd"); println!("SeekToEnd");
self.reader.seek(SeekFrom::End(0)).unwrap(); self.reader.seek(SeekFrom::End(0)).unwrap();
} }
LogWatcherAction::None => { LogWatcherAction::None => {}
}
} }
line.clear(); line.clear();
} else { } else {