From c101ab2d694fe5b4d394a37e48a8e2205cb32134 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Tue, 3 Oct 2023 22:19:40 -0700 Subject: [PATCH 1/3] bump: trimothy 0.2 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1f6a1d5..905aaf3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ serde_json = "1.0.*" [dependencies] dactyl = "0.5.0" -trimothy = "0.1.*" +trimothy = "0.2.*" [dependencies.faster-hex] version = "0.8.*" From 7611f120fb0e109501ef52dad984586de43d06da Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Wed, 4 Oct 2023 22:06:06 -0700 Subject: [PATCH 2/3] lint --- src/track.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/track.rs b/src/track.rs index da92ee1..4c3210c 100644 --- a/src/track.rs +++ b/src/track.rs @@ -401,17 +401,17 @@ impl TrackPosition { -#[allow(clippy::integer_division, clippy::cast_possible_truncation)] +#[allow(clippy::cast_possible_truncation)] /// # LBA to MSF. /// /// Convert a logical block address (sectors) to minutes, seconds, and frames. const fn lba_to_msf(sectors: u32) -> (u32, u8, u8) { // 75 sectors per second. - let mut s = sectors / 75; + let mut s = sectors.wrapping_div(75); let f = sectors - s * 75; // 60 seconds per minute. - let m = s / 60; + let m = s.wrapping_div(60); s -= m * 60; (m, s as u8, f as u8) From 18a65e385ff74b04b83d6228264fd3a219ba4837 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 5 Oct 2023 12:36:18 -0700 Subject: [PATCH 3/3] bump: 0.3.1 --- CHANGELOG.md | 9 +++++++++ CREDITS.md | 8 ++++---- Cargo.toml | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fe4b9c..c6c0cd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog +## [0.3.1](https://github.com/Blobfolio/cdtoc/releases/tag/v0.3.1) - 2023-10-05 + +## Changed + +* Minor code lints and cleanup +* Bump `trimothy` to `0.2` + + + ## [0.3.0](https://github.com/Blobfolio/cdtoc/releases/tag/v0.3.0) - 2023-10-03 ### New diff --git a/CREDITS.md b/CREDITS.md index ef4d97c..8582d0e 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,19 +1,19 @@ # Project Dependencies Package: cdtoc - Version: 0.3.0 - Generated: 2023-10-04 01:50:41 UTC + Version: 0.3.1 + Generated: 2023-10-05 19:36:02 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | | [block-buffer](https://github.com/RustCrypto/utils) | 0.10.4 | RustCrypto Developers | Apache-2.0 or MIT | | [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | | [crypto-common](https://github.com/RustCrypto/traits) | 0.1.6 | RustCrypto Developers | Apache-2.0 or MIT | -| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [digest](https://github.com/RustCrypto/traits) | 0.10.7 | RustCrypto Developers | Apache-2.0 or MIT | | [faster-hex](https://github.com/NervosFoundation/faster-hex) | 0.8.1 | [zhangsoledad](mailto:787953403@qq.com) | MIT | | [generic-array](https://github.com/fizyk20/generic-array.git) | 0.14.7 | [Bartłomiej Kamiński](mailto:fizyk20@gmail.com) and [Aaron Trent](mailto:novacrazy@gmail.com) | MIT | | [itoa](https://github.com/dtolnay/itoa) | 1.0.9 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | | [num-traits](https://github.com/rust-num/num-traits) | 0.2.16 | The Rust Project Developers | Apache-2.0 or MIT | | [sha1](https://github.com/RustCrypto/hashes) | 0.10.6 | RustCrypto Developers | Apache-2.0 or MIT | -| [trimothy](https://github.com/Blobfolio/trimothy) | 0.1.8 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [trimothy](https://github.com/Blobfolio/trimothy) | 0.2.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [typenum](https://github.com/paholg/typenum) | 1.17.0 | [Paho Lurie-Gregg](mailto:paho@paholg.com) and [Andre Bogus](mailto:bogusandre@gmail.com) | Apache-2.0 or MIT | diff --git a/Cargo.toml b/Cargo.toml index 905aaf3..3afcdfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdtoc" -version = "0.3.0" +version = "0.3.1" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.70"