Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Ilst**: `AtomData::Bool` for the various flag atoms such as `cpil`, `pcst`, etc.
- **ogg_pager**: Support for reading packets with the new `Packets` struct.
- **ogg_pager**: `PageHeader` struct.
- **BoundTaggedFile**: A `TaggedFile` variant bound to a `File` handle.

### Changed
- **Files**: Return the removed tag from `<File>::remove(TagType)`
Expand All @@ -21,7 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
spec-compliant and efficient.
- **ogg_pager**: Most fields in `Page` have been separated out into the new `PageHeader` struct.
- **ogg_pager**: `paginate` now works with a collection of packets.
- **lofty_attr**: The `lofty_attr::LoftyFile` derive proc macro is now exported as `lofty::LoftyFile`
- **lofty_attr**: The `lofty_attr::LoftyFile` derive proc macro is now exported as `lofty::LoftyFile`.
- **TaggedFile**: All methods have been split out into a new trait, `TaggedFileExt`.

### Removed
- **ogg_pager**: Removed `Page::new`, now pages can only be created through `ogg_pager::paginate` or
Expand Down
2 changes: 1 addition & 1 deletion examples/tag_reader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use lofty::{Accessor, AudioFile, Probe};
use lofty::{Accessor, AudioFile, Probe, TaggedFileExt};
use std::path::Path;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/tag_stripper.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use lofty::Probe;
use lofty::{Probe, TaggedFileExt};
use std::io::Write;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/tag_writer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use lofty::{Accessor, Probe, Tag, TagExt};
use lofty::{Accessor, Probe, Tag, TagExt, TaggedFileExt};

use structopt::StructOpt;

Expand Down
2 changes: 2 additions & 0 deletions lofty_attr/src/lofty_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ pub(crate) fn parse(

impl std::convert::From<#struct_name> for lofty::TaggedFile {
fn from(input: #struct_name) -> Self {
use ::lofty::TaggedFileExt as _;

lofty::TaggedFile::new(
#file_type_variant,
lofty::FileProperties::from(input.properties),
Expand Down
Loading