Skip to content

Commit

Permalink
release: 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Oct 5, 2023
2 parents 42271e9 + 18a65e3 commit a2815c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -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:[email protected]) | 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:[email protected]) | WTFPL |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.2 | [Blobfolio, LLC.](mailto:[email protected]) | 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:[email protected]) | MIT |
| [generic-array](https://github.com/fizyk20/generic-array.git) | 0.14.7 | [Bartłomiej Kamiński](mailto:[email protected]) and [Aaron Trent](mailto:[email protected]) | MIT |
| [itoa](https://github.com/dtolnay/itoa) | 1.0.9 | [David Tolnay](mailto:[email protected]) | 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:[email protected]) | WTFPL |
| [trimothy](https://github.com/Blobfolio/trimothy) | 0.2.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [typenum](https://github.com/paholg/typenum) | 1.17.0 | [Paho Lurie-Gregg](mailto:[email protected]) and [Andre Bogus](mailto:[email protected]) | Apache-2.0 or MIT |
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cdtoc"
version = "0.3.0"
version = "0.3.1"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.70"
Expand Down Expand Up @@ -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.*"
Expand Down
6 changes: 3 additions & 3 deletions src/track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2815c9

Please sign in to comment.