Skip to content

Commit 4c5f3e2

Browse files
committed
0.22.2
1 parent 0d42d62 commit 4c5f3e2

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.22.2] - 2025-02-08
10+
11+
Thanks, [@Lepidopteran](https://github.com/Lepidopteran) for this release!
12+
13+
### Fixed
14+
15+
* **Docs** ([PR](https://github.com/Serial-ATA/lofty-rs/pull/504)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/506)): Updated old (invalid) links
16+
* **ID3v2** ([issue](https://github.com/Serial-ATA/lofty-rs/issues/507)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/508)): Preserve all values of `ItemKey::MusicBrainz{ArtistId, ReleaseArtistId, WorkId}`
17+
* Previously, the fields would be written with only the *last* value in the list.
18+
919
## [0.22.1] - 2025-01-11
1020

1121
### Changed
@@ -915,7 +925,8 @@ See [ogg_pager's changelog](ogg_pager/CHANGELOG.md).
915925
### Removed
916926
- `ErrorKind::BadExtension`
917927

918-
[Unreleased]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.1...HEAD
928+
[Unreleased]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.2...HEAD
929+
[0.22.2]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.1...0.22.2
919930
[0.22.1]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.0...0.22.1
920931
[0.22.0]: https://github.com/Serial-ATA/lofty-rs/compare/0.21.1...0.22.0
921932
[0.21.1]: https://github.com/Serial-ATA/lofty-rs/compare/0.21.0...0.21.1

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ needless_return = "allow" # Explicit returns are needed from time to time
5555
redundant_guards = "allow" # Currently broken for some cases, might enable later
5656
into_iter_without_iter = "allow" # This is only going to fire on some internal types, doesn't matter much
5757
struct_excessive_bools = "allow" # I have yet to find one case of this being useful
58+
needless_continue = "allow" # All occurences of this lint are just for clarity in large loops
5859

5960
[workspace.lints.rustdoc]
6061
broken_intra_doc_links = "deny"

lofty/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lofty"
3-
version = "0.22.1"
3+
version = "0.22.2"
44
authors = ["Serial <[email protected]>"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
@@ -18,7 +18,7 @@ byteorder = { workspace = true }
1818
# ID3 compressed frames
1919
flate2 = { version = "1.0.30", optional = true }
2020
# Proc macros
21-
lofty_attr = { path = "../lofty_attr" }
21+
lofty_attr = "0.11.1"
2222
# Debug logging
2323
log = "0.4.22"
2424
# OGG Vorbis/Opus

lofty/src/aac/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl ADTSHeader {
100100
// MMMOOOOO
101101
let byte6 = header[5];
102102

103-
let len = (u16::from(byte4 & 0b11) << 11) | u16::from(byte5) << 3 | u16::from(byte6) >> 5;
103+
let len = (u16::from(byte4 & 0b11) << 11) | (u16::from(byte5) << 3) | (u16::from(byte6) >> 5);
104104
let bitrate = ((u32::from(len) * sample_rate / 1024) * 8) / 1024;
105105

106106
if needs_crc_skip {

0 commit comments

Comments
 (0)