Cargo fmt
Some checks failed
Build and test / build (push) Successful in 57s
Build and test / check (push) Failing after 1m2s
Build and test / docs (push) Has been cancelled
Build and test / test (push) Has been cancelled

This commit is contained in:
2025-02-23 16:40:06 +01:00
parent 44ba3eb4dc
commit 432f16ae2b
10 changed files with 9 additions and 14 deletions

View File

@@ -104,7 +104,6 @@ pub enum ResponseParserError<'a> {
/// Response ended early, while more properties were expected.
UnexpectedEOF,
// MissingNewline,
}

View File

@@ -35,4 +35,4 @@ pub type Feature = String;
pub type PartitionName = String;
pub type AudioOutputId = String;
pub type ChannelName = String;
pub type StickerType = String;
pub type StickerType = String;

View File

@@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
use super::SongPosition;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum AbsouluteRelativeSongPosition {
Absolute(SongPosition),
@@ -22,4 +21,4 @@ impl FromStr for AbsouluteRelativeSongPosition {
s => Self::Absolute(s.parse().map_err(|_| ())?),
})
}
}
}

View File

@@ -2,7 +2,6 @@ use std::str::FromStr;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Audio {
pub sample_rate: u64,
@@ -24,4 +23,4 @@ impl FromStr for Audio {
channels,
})
}
}
}

View File

@@ -20,4 +20,4 @@ impl FromStr for BoolOrOneshot {
_ => return Err(()),
})
}
}
}

View File

@@ -21,4 +21,4 @@ impl FromStr for OneOrRange {
None => Self::One(start),
})
}
}
}

View File

@@ -2,7 +2,6 @@ use std::str::FromStr;
use serde::{Deserialize, Serialize};
/// These are different parts of the canonical MPD server.
/// They are mostly used in the protocol with the `idle` command,
/// signalling that the client is waiting for changes in any, one or multiple of these subsystems.
@@ -63,4 +62,4 @@ impl FromStr for SubSystem {
other => Self::Other(other.to_string()),
})
}
}
}

View File

@@ -118,4 +118,4 @@ impl Tag {
other => Self::Other(other.to_string(), value),
}
}
}
}

View File

@@ -22,4 +22,4 @@ impl FromStr for TimeInterval {
end: end.transpose()?,
})
}
}
}

View File

@@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
use super::SongPosition;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct WindowRange {
pub start: SongPosition,
@@ -23,4 +22,4 @@ impl FromStr for WindowRange {
end: end.transpose()?,
})
}
}
}