Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0c33e2ad9 | |||
cf3ddc6c6a | |||
4f81e1dcf4 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -110,7 +110,7 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
|
||||
|
||||
[[package]]
|
||||
name = "logtimes"
|
||||
version = "1.0.27"
|
||||
version = "1.0.28"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "logtimes"
|
||||
version = "1.0.27"
|
||||
version = "1.0.28"
|
||||
authors = ["Paul Schulze <p.schulze@avm.de>"]
|
||||
edition = "2021"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
use std::{
|
||||
env::args,
|
||||
fs::File,
|
||||
io::{stdin, stdout, Error as IoError, ErrorKind, Read, Write},
|
||||
io::{Error as IoError, ErrorKind, Read, Write, stdin, stdout},
|
||||
};
|
||||
|
||||
use chrono::prelude::*;
|
||||
@ -94,7 +94,7 @@ fn run() -> LogtimesResult {
|
||||
f.write_all(&linebuf[..end])?;
|
||||
f.write_all(b"\n")?;
|
||||
f.flush()?;
|
||||
};
|
||||
}
|
||||
|
||||
// clear line buffer, so it is fresh for the next line
|
||||
linebuf.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user