Skip to content

Commit c675a5e

Browse files
committed
docs: Stop putting doc comments below attributes
1 parent e579aff commit c675a5e

File tree

25 files changed

+44
-44
lines changed

25 files changed

+44
-44
lines changed

ogg_pager/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ impl Page {
276276
}
277277
}
278278

279-
#[allow(clippy::mixed_read_write_in_expression)]
280279
/// Create pages from a packet
281280
///
282281
/// # Example
@@ -290,6 +289,7 @@ impl Page {
290289
///
291290
/// let pages = paginate(&comment_header_packet, stream_serial_number, 0, 0);
292291
/// ```
292+
#[allow(clippy::mixed_read_write_in_expression)]
293293
pub fn paginate(packet: &[u8], stream_serial: u32, abgp: u64, flags: u8) -> Vec<Page> {
294294
let mut pages = Vec::new();
295295

src/ape/properties.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use std::time::Duration;
88

99
use byteorder::{LittleEndian, ReadBytesExt};
1010

11+
/// An APE file's audio properties
1112
#[derive(Clone, Debug, PartialEq, Eq, Default)]
1213
#[non_exhaustive]
13-
/// An APE file's audio properties
1414
pub struct ApeProperties {
1515
pub(crate) version: u16,
1616
pub(crate) duration: Duration,

src/ape/tag/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ use crate::tag::TagType;
66

77
use std::convert::TryFrom;
88

9-
#[derive(Debug, PartialEq, Eq, Clone)]
109
/// Represents an `APE` tag item
1110
///
1211
/// The restrictions for `APE` lie in the key rather than the value,
1312
/// so these are still able to use [`ItemValue`]s
13+
#[derive(Debug, PartialEq, Eq, Clone)]
1414
pub struct ApeItem {
1515
/// Whether or not to mark the item as read only
1616
pub read_only: bool,

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use ogg_pager::PageError;
1313
/// Alias for `Result<T, LoftyError>`
1414
pub type Result<T> = std::result::Result<T, LoftyError>;
1515

16+
/// The types of errors that can occur
1617
#[derive(Debug)]
1718
#[non_exhaustive]
18-
/// The types of errors that can occur
1919
pub enum ErrorKind {
2020
// File format related errors
2121
/// Unable to guess the format
@@ -66,9 +66,9 @@ pub enum ErrorKind {
6666
Alloc(TryReserveError),
6767
}
6868

69+
/// The types of errors that can occur while interacting with ID3v2 tags
6970
#[derive(Debug, Clone)]
7071
#[non_exhaustive]
71-
/// The types of errors that can occur while interacting with ID3v2 tags
7272
pub enum ID3v2ErrorKind {
7373
#[cfg(feature = "id3v2")]
7474
/// Arises when an invalid picture format is parsed. Only applicable to [`ID3v2Version::V2`](crate::id3::v2::ID3v2Version::V2)

src/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ impl AudioFile for TaggedFile {
477477
}
478478
}
479479

480+
/// The type of file read
480481
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
481482
#[allow(missing_docs)]
482483
#[non_exhaustive]
483-
/// The type of file read
484484
pub enum FileType {
485485
AAC,
486486
AIFF,

src/id3/v1/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#[cfg(any(feature = "id3v1", feature = "mp4_ilst"))]
21
/// All possible genres for ID3v1
2+
#[cfg(any(feature = "id3v1", feature = "mp4_ilst"))]
33
pub const GENRES: [&str; 192] = [
44
"Blues",
55
"Classic rock",

src/id3/v2/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#[cfg(feature = "id3v2_restrictions")]
22
use super::restrictions::TagRestrictions;
33

4+
/// Flags that apply to the entire tag
45
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
56
#[allow(clippy::struct_excessive_bools)]
6-
/// Flags that apply to the entire tag
77
pub struct ID3v2TagFlags {
88
/// Whether or not all frames are unsynchronised. See [`FrameFlags::unsynchronisation`](crate::id3::v2::FrameFlags::unsynchronisation)
99
pub unsynchronisation: bool,

src/id3/v2/items/encapsulated_object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use crate::util::text::{decode_text, encode_text, TextEncoding};
33

44
use std::io::{Cursor, Read};
55

6-
#[derive(PartialEq, Clone, Debug, Eq, Hash)]
76
/// Information about a [`GeneralEncapsulatedObject`]
7+
#[derive(PartialEq, Clone, Debug, Eq, Hash)]
88
pub struct GEOBInformation {
99
/// The text encoding of `file_name` and `description`
1010
pub encoding: TextEncoding,

src/id3/v2/items/sync_text.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use std::io::{Cursor, Read, Seek, SeekFrom, Write};
66

77
use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
88

9+
/// The unit used for [`SynchronizedText`] timestamps
910
#[derive(Copy, Clone, PartialEq, Debug, Eq, Hash)]
1011
#[repr(u8)]
11-
/// The unit used for [`SynchronizedText`] timestamps
1212
pub enum TimestampFormat {
1313
/// The unit is MPEG frames
1414
MPEG = 1,
@@ -27,10 +27,10 @@ impl TimestampFormat {
2727
}
2828
}
2929

30+
/// The type of text stored in a [`SynchronizedText`]
3031
#[derive(Copy, Clone, PartialEq, Debug, Eq, Hash)]
3132
#[repr(u8)]
3233
#[allow(missing_docs)]
33-
/// The type of text stored in a [`SynchronizedText`]
3434
pub enum SyncTextContentType {
3535
Other = 0,
3636
Lyrics = 1,
@@ -61,8 +61,8 @@ impl SyncTextContentType {
6161
}
6262
}
6363

64-
#[derive(PartialEq, Clone, Debug, Eq, Hash)]
6564
/// Information about a [`SynchronizedText`]
65+
#[derive(PartialEq, Clone, Debug, Eq, Hash)]
6666
pub struct SyncTextInformation {
6767
/// The text encoding (description/text)
6868
pub encoding: TextEncoding,

src/id3/v2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ cfg_if::cfg_if! {
5555
#[cfg(not(feature = "id3v2"))]
5656
use flags::ID3v2TagFlags;
5757

58-
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
5958
/// The ID3v2 version
59+
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
6060
pub enum ID3v2Version {
6161
/// ID3v2.2
6262
V2,

0 commit comments

Comments
 (0)