diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:26:55 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:26:55 +0100 |
commit | 794546168238eca6300a9088204ad59ef917395e (patch) | |
tree | 13f53f3477e602bb617c208720914619d9e0018a /crates/bytes/src | |
parent | fix(yt/download): Don't trust the `cache_path` attribute (diff) | |
download | yt-794546168238eca6300a9088204ad59ef917395e.tar.gz yt-794546168238eca6300a9088204ad59ef917395e.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | crates/bytes/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |