Fix new clippy lints
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m54s
Cargo CI / Lint (pull_request) Successful in 1m5s

This commit is contained in:
Wojciech Kozlowski 2024-12-30 22:33:28 +01:00
parent c8aaa10475
commit a49eaf33cf
7 changed files with 8 additions and 8 deletions

View File

@ -82,7 +82,7 @@ impl From<DeserializeMbid> for Mbid {
struct DeserializeMbidVisitor;
impl<'de> Visitor<'de> for DeserializeMbidVisitor {
impl Visitor<'_> for DeserializeMbidVisitor {
type Value = DeserializeMbid;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

View File

@ -59,7 +59,7 @@ impl<'a, T: IMusicBrainzRef> From<&'a MbRefOption<T>> for SerializeMbRefOption<'
}
}
impl<'a> Serialize for SerializeMbid<'a> {
impl Serialize for SerializeMbid<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,

View File

@ -199,7 +199,7 @@ impl From<SerdeMbid> for Mbid {
struct SerdeMbidVisitor;
impl<'de> Visitor<'de> for SerdeMbidVisitor {
impl Visitor<'_> for SerdeMbidVisitor {
type Value = SerdeMbid;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
@ -237,7 +237,7 @@ impl From<SerdeAlbumDate> for AlbumDate {
struct SerdeAlbumDateVisitor;
impl<'de> Visitor<'de> for SerdeAlbumDateVisitor {
impl Visitor<'_> for SerdeAlbumDateVisitor {
type Value = SerdeAlbumDate;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

View File

@ -14,7 +14,7 @@ pub enum SearchArtist<'a> {
String(&'a str),
}
impl<'a> fmt::Display for SearchArtist<'a> {
impl fmt::Display for SearchArtist<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::String(s) => write!(f, "\"{s}\""),

View File

@ -228,7 +228,7 @@ mod tests {
String(&'a str),
}
impl<'a> fmt::Display for TestEntity<'a> {
impl fmt::Display for TestEntity<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::String(s) => write!(f, "\"{s}\""),

View File

@ -21,7 +21,7 @@ pub enum SearchReleaseGroup<'a> {
Rgid(&'a Mbid),
}
impl<'a> fmt::Display for SearchReleaseGroup<'a> {
impl fmt::Display for SearchReleaseGroup<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::String(s) => write!(f, "\"{s}\""),

View File

@ -214,7 +214,7 @@ mod tests {
use super::*;
// Automock does not support returning types with generic lifetimes.
impl<'app> IAppAccess for AppPublic<'app> {
impl IAppAccess for AppPublic<'_> {
fn get(&mut self) -> AppPublic {
AppPublic {
inner: AppPublicInner {