Skip to content

Commit da78c44

Browse files
committed
ogg_pager: 0.7.0
1 parent 851aaf4 commit da78c44

File tree

5 files changed

+11
-41
lines changed

5 files changed

+11
-41
lines changed

lofty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ lofty_attr = "0.11.0"
2222
# Debug logging
2323
log = "0.4.22"
2424
# OGG Vorbis/Opus
25-
ogg_pager = { path = "../ogg_pager" }
25+
ogg_pager = "0.7.0"
2626
# Key maps
2727
paste = "1.0.15"
2828

ogg_pager/CHANGELOG.md

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

77
## [Unreleased]
88

9-
## [0.7.0] - 2024-10-26
9+
## [0.7.0] - 2025-01-05
1010

1111
### Fixed
1212
- Writing a packet whose size is perfectly divisible by 255 would make the second to last segment have a size of 0, rather than 255 ([issue](https://github.com/Serial-ATA/lofty-rs/issues/469)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/475))

ogg_pager/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ogg_pager"
3-
version = "0.6.1"
3+
version = "0.7.0"
44
authors = ["Serial <[email protected]>"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

ogg_pager/src/lib.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,5 @@
11
//! A simple OGG page reader
22
3-
#![allow(
4-
unknown_lints,
5-
clippy::too_many_lines,
6-
clippy::cast_precision_loss,
7-
clippy::cast_sign_loss,
8-
clippy::cast_possible_wrap,
9-
clippy::cast_possible_truncation,
10-
clippy::module_name_repetitions,
11-
clippy::must_use_candidate,
12-
clippy::doc_markdown,
13-
let_underscore_drop,
14-
clippy::match_wildcard_for_single_variants,
15-
clippy::semicolon_if_nothing_returned,
16-
clippy::new_without_default,
17-
clippy::from_over_into,
18-
clippy::upper_case_acronyms,
19-
clippy::single_match_else,
20-
clippy::similar_names,
21-
clippy::tabs_in_doc_comments,
22-
clippy::len_without_is_empty,
23-
clippy::needless_late_init,
24-
clippy::type_complexity,
25-
clippy::type_repetition_in_bounds,
26-
unused_qualifications,
27-
clippy::return_self_not_must_use,
28-
clippy::bool_to_int_with_if,
29-
clippy::uninlined_format_args, /* This should be changed for any normal "{}", but I'm not a fan of it for any debug or width specific formatting */
30-
clippy::manual_let_else,
31-
clippy::struct_excessive_bools,
32-
clippy::match_bool
33-
)]
34-
353
mod crc;
364
mod error;
375
mod header;

ogg_pager/src/paginate.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,15 @@ impl PaginateContext {
5252
let mut header = PageHeader {
5353
start: self.pos,
5454
header_type_flag: {
55-
match self.flags.first_page {
56-
true if self.header_flags & CONTAINS_FIRST_PAGE_OF_BITSTREAM != 0 => {
57-
CONTAINS_FIRST_PAGE_OF_BITSTREAM
58-
},
55+
if self.flags.first_page
56+
&& self.header_flags & CONTAINS_FIRST_PAGE_OF_BITSTREAM != 0
57+
{
58+
CONTAINS_FIRST_PAGE_OF_BITSTREAM
59+
} else if !self.flags.fresh_packet {
5960
// A packet from the previous page continues onto this page
60-
false if !self.flags.fresh_packet => CONTINUED_PACKET,
61-
_ => 0,
61+
CONTINUED_PACKET
62+
} else {
63+
0
6264
}
6365
},
6466
abgp: 0,

0 commit comments

Comments
 (0)