Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
Fix cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed May 25, 2022
1 parent 5ef34fb commit 9a1ae2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ audiotags-dev-macro = {path = "./audiotags-dev-macro", version = "0.1.4"}
[dev-dependencies]
tempfile = "3.3.0"

[build-dependencies]
readme-rustdocifier = "0.1.0"

[features]
default = ['from']
from = []
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ fn main() {

tag.write_to_path(MP3_FILE).expect("Fail to save");
}

```

License: MIT
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@
//!
//! Read the [manual](https://docs.rs/audiotags) for some examples, but here's a quick-one:
//!
//! ```rust
//! ```rust,no_run
//! use audiotags2::{Tag, Picture, MimeType};
//!
//! fn main() {
//! // using `default()` or `new()` alone so that the metadata format is
//! // guessed (from the file extension) (in this case, Id3v2 tag is read)
//! let mut tag = Tag::new().read_from_path(MP3_FILE).unwrap();
//! let mut tag = Tag::new().read_from_path("test.mp3").unwrap();
//!
//! tag.set_title("foo title");
//! assert_eq!(tag.title(), Some("foo title"));
Expand All @@ -59,9 +61,8 @@
//! assert!(tag.album_cover().is_none());
//! tag.remove_album_cover();
//!
//! tag.write_to_path(MP3_FILE).expect("Fail to save");
//! tag.write_to_path("test.mp3").expect("Fail to save");
//! }
//!
//! ```

pub(crate) use audiotags_dev_macro::*;
Expand Down

0 comments on commit 9a1ae2e

Please sign in to comment.