From 794546168238eca6300a9088204ad59ef917395e Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 4 Nov 2024 20:26:55 +0100 Subject: fix(yt/download): Only print changed bytes sizes, on changed string 2_000_000_000 and 2_000_000_001 cache sizes are not the same, but will both print out "1.86 GiB". Obviously, notifying the user about this change is rather counter-productive. --- crates/bytes/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/bytes/src') diff --git a/crates/bytes/src/lib.rs b/crates/bytes/src/lib.rs index 6e3f73c..2a9248d 100644 --- a/crates/bytes/src/lib.rs +++ b/crates/bytes/src/lib.rs @@ -34,7 +34,7 @@ const TB: u64 = 1000 * GB; pub mod error; pub mod serde; -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)] pub struct Bytes(u64); impl Bytes { -- cgit 1.4.1