Compare commits
	
		
			13 Commits
		
	
	
		
			v1.0.10
			...
			9791354234
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9791354234 | |||
| e85bb2298b | |||
| 95da70b177 | |||
| 9418cdaced | |||
| ab38176adb | |||
| ce8ac3c7f2 | |||
| a6d8eba632 | |||
| e5952d5467 | |||
| 90f1515166 | |||
| fb4d9ee3f4 | |||
| 2597cc87b8 | |||
| fbcf7ea4c5 | |||
| 7b8f1cf81c | 
							
								
								
									
										26
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @@ -31,9 +31,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" | ||||
|  | ||||
| [[package]] | ||||
| name = "cc" | ||||
| version = "1.1.11" | ||||
| version = "1.1.21" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "5fb8dd288a69fc53a1996d7ecfbf4a20d59065bff137ce7e56bbd620de191189" | ||||
| checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" | ||||
| dependencies = [ | ||||
|  "shlex", | ||||
| ] | ||||
| @@ -64,9 +64,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" | ||||
|  | ||||
| [[package]] | ||||
| name = "iana-time-zone" | ||||
| version = "0.1.60" | ||||
| version = "0.1.61" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" | ||||
| checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" | ||||
| dependencies = [ | ||||
|  "android_system_properties", | ||||
|  "core-foundation-sys", | ||||
| @@ -96,9 +96,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "libc" | ||||
| version = "0.2.155" | ||||
| version = "0.2.159" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" | ||||
| checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" | ||||
|  | ||||
| [[package]] | ||||
| name = "log" | ||||
| @@ -108,7 +108,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" | ||||
|  | ||||
| [[package]] | ||||
| name = "logtimes" | ||||
| version = "1.0.10" | ||||
| version = "1.0.15" | ||||
| dependencies = [ | ||||
|  "chrono", | ||||
| ] | ||||
| @@ -139,9 +139,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "quote" | ||||
| version = "1.0.36" | ||||
| version = "1.0.37" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" | ||||
| checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
| ] | ||||
| @@ -154,9 +154,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" | ||||
|  | ||||
| [[package]] | ||||
| name = "syn" | ||||
| version = "2.0.74" | ||||
| version = "2.0.77" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "1fceb41e3d546d0bd83421d3409b1460cc7444cd389341a4c880fe7a042cb3d7" | ||||
| checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
|  "quote", | ||||
| @@ -165,9 +165,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "unicode-ident" | ||||
| version = "1.0.12" | ||||
| version = "1.0.13" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" | ||||
| checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" | ||||
|  | ||||
| [[package]] | ||||
| name = "wasm-bindgen" | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| [package] | ||||
| name = "logtimes" | ||||
| version = "1.0.10" | ||||
| version = "1.0.15" | ||||
| 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" | ||||
|   | ||||
| @@ -6,7 +6,7 @@ use std::{ | ||||
|  | ||||
| use chrono::prelude::*; | ||||
|  | ||||
| const TIME_FORMAT: &str = "%H:%M:%S%.6f"; | ||||
| const TIME_FORMAT: &str = "%H:%M:%S%.3f"; | ||||
|  | ||||
| type LogtimesResult = Result<(), IoError>; | ||||
|  | ||||
| @@ -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()?; | ||||
|             }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user