Compare commits
4 Commits
90f1515166
...
ab38176adb
Author | SHA1 | Date | |
---|---|---|---|
ab38176adb | |||
ce8ac3c7f2 | |||
a6d8eba632 | |||
e5952d5467 |
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -31,9 +31,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cc"
|
name = "cc"
|
||||||
version = "1.1.16"
|
version = "1.1.18"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e9d013ecb737093c0e86b151a7b837993cf9ec6c502946cfb44bedc392421e0b"
|
checksum = "b62ac837cdb5cb22e10a256099b4fc502b1dfe560cb282963a974d7abd80e476"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"shlex",
|
"shlex",
|
||||||
]
|
]
|
||||||
@ -108,7 +108,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "logtimes"
|
name = "logtimes"
|
||||||
version = "1.0.12"
|
version = "1.0.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "logtimes"
|
name = "logtimes"
|
||||||
version = "1.0.12"
|
version = "1.0.13"
|
||||||
authors = ["Paul Schulze <p.schulze@avm.de>"]
|
authors = ["Paul Schulze <p.schulze@avm.de>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ features = ["std", "clock"]
|
|||||||
unsafe_code = "forbid"
|
unsafe_code = "forbid"
|
||||||
|
|
||||||
[lints.clippy]
|
[lints.clippy]
|
||||||
pedantic = "warn"
|
pedantic = { level = "warn", priority = -1 }
|
||||||
todo = "warn"
|
todo = "warn"
|
||||||
unwrap_used = "warn"
|
unwrap_used = "warn"
|
||||||
inline_always = "allow"
|
inline_always = "allow"
|
||||||
|
@ -89,13 +89,13 @@ fn run() -> LogtimesResult {
|
|||||||
|
|
||||||
let end = trim_end(&linebuf);
|
let end = trim_end(&linebuf);
|
||||||
out.write_all(&linebuf[..end])?;
|
out.write_all(&linebuf[..end])?;
|
||||||
out.write_all(&[b'\r', b'\n'])?;
|
out.write_all(b"\r\n")?;
|
||||||
out.flush()?;
|
out.flush()?;
|
||||||
|
|
||||||
if let Some(ref mut f) = log_file {
|
if let Some(ref mut f) = log_file {
|
||||||
print_time(f)?;
|
print_time(f)?;
|
||||||
f.write_all(&linebuf[..end])?;
|
f.write_all(&linebuf[..end])?;
|
||||||
f.write_all(&[b'\n'])?;
|
f.write_all(b"\n")?;
|
||||||
f.flush()?;
|
f.flush()?;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user