Compare commits

..

4 Commits

Author SHA1 Message Date
ab38176adb
[release] logtimes v1.0.13 2024-09-09 11:19:59 +02:00
ce8ac3c7f2
[deps] cargo update
Updating cc v1.1.16 -> v1.1.18
2024-09-09 11:19:49 +02:00
a6d8eba632
[clippy] fix: byte array -> byte str 2024-09-09 11:19:02 +02:00
e5952d5467
[clippy] quirk in Cargo.toml for pedantic lint 2024-09-09 11:17:00 +02:00
3 changed files with 7 additions and 7 deletions

6
Cargo.lock generated
View File

@ -31,9 +31,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "cc"
version = "1.1.16"
version = "1.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9d013ecb737093c0e86b151a7b837993cf9ec6c502946cfb44bedc392421e0b"
checksum = "b62ac837cdb5cb22e10a256099b4fc502b1dfe560cb282963a974d7abd80e476"
dependencies = [
"shlex",
]
@ -108,7 +108,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]]
name = "logtimes"
version = "1.0.12"
version = "1.0.13"
dependencies = [
"chrono",
]

View File

@ -1,6 +1,6 @@
[package]
name = "logtimes"
version = "1.0.12"
version = "1.0.13"
authors = ["Paul Schulze <p.schulze@avm.de>"]
edition = "2021"
@ -13,7 +13,7 @@ features = ["std", "clock"]
unsafe_code = "forbid"
[lints.clippy]
pedantic = "warn"
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
inline_always = "allow"

View File

@ -89,13 +89,13 @@ fn run() -> LogtimesResult {
let end = trim_end(&linebuf);
out.write_all(&linebuf[..end])?;
out.write_all(&[b'\r', b'\n'])?;
out.write_all(b"\r\n")?;
out.flush()?;
if let Some(ref mut f) = log_file {
print_time(f)?;
f.write_all(&linebuf[..end])?;
f.write_all(&[b'\n'])?;
f.write_all(b"\n")?;
f.flush()?;
};