We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98caaa commit ec77772Copy full SHA for ec77772
src/tail_file.rs
@@ -41,7 +41,8 @@ impl TailFile {
41
.read_to_end(&mut self.read_buf)
42
.context("Read tail of log file")?;
43
if let Some(new_last) = String::from_utf8_lossy(&self.read_buf)
44
- .lines().rfind(|l| !l.trim().is_empty())
+ .lines()
45
+ .rfind(|l| !l.trim().is_empty())
46
{
47
new_last.clone_into(&mut self.last_line_seen);
48
}
0 commit comments