From dae5821aa6c829116d74ea10a16d0a8ee086819c Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Fri, 15 Nov 2024 00:10:10 +0100 Subject: [PATCH] style: Fix clippy warnings Fixes the following warnings: warning: can be more succinctly written as a byte str --> src/tag/format/enveloped.rs:89:43 | 89 | bytes_written += writer.write(&[b'\n'])?; | ^^^^^^^^ help: try: `b"\n"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices note: the lint level is defined here --> src/lib.rs:121:9 | 121 | #![deny(clippy::all)] | ^^^^^^^^^^^ = note: `#[warn(clippy::byte_char_slices)]` implied by `#[warn(clippy::all)]` warning: doc list item without indentation --> src/lib.rs:95:5 | 95 | //! `_Serato_/Metadata` directory instead. No support has been added yet. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[warn(clippy::doc_lazy_continuation)]` implied by `#[warn(clippy::all)]` help: indent this line | 95 | //! `_Serato_/Metadata` directory instead. No support has been added yet. | ++ --- src/lib.rs | 2 +- src/tag/format/enveloped.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f422a5a..286e8d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,7 +92,7 @@ //! - The `Serato RelVolAd` and the `Serato VidAssoc` tags haven't been reverse engineed yet, but //! preliminary support has been added. For now, they just return a tag version and a byte vector. //! - AAC files (among others) do not store metadata in tags, and use XML files in the -//! `_Serato_/Metadata` directory instead. No support has been added yet. +//! `_Serato_/Metadata` directory instead. No support has been added yet. //! - The cue colors stored in the metadata are *not* the same as displayed in Serato DJ Pro. //! Instead, they uses the color palette from Serato DJ Into. Serato then maps them to a new //! color palette. Support for converting between the two is currently missing. diff --git a/src/tag/format/enveloped.rs b/src/tag/format/enveloped.rs index 4a8c164..8130ca9 100644 --- a/src/tag/format/enveloped.rs +++ b/src/tag/format/enveloped.rs @@ -86,7 +86,7 @@ pub fn base64_encode(writer: &mut impl io::Write, input: &[u8]) -> Result