Skip to content

Commit

Permalink
More clippy cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LJ authored and LJ committed Jul 27, 2024
1 parent 5cc7f37 commit cda246d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ impl From<Machine> for Owner {
}

impl From<Owner> for Any {
fn from(id: Owner) -> Any {
fn from(id: Owner) -> Self {
match id {
Owner::User(v) => Any::User(v),
Owner::Group(v) => Any::Group(v),
Owner::Machine(v) => Any::Machine(v),
Owner::User(v) => Self::User(v),
Owner::Group(v) => Self::Group(v),
Owner::Machine(v) => Self::Machine(v),
}
}
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! Typed models for [Resonite's API](https://wiki.resonite.com) with serde support.
//!
//! Currently still missing a lot, as there's no official support or docs for
//! the API. ```
//! the API.

#![cfg_attr(nightly, feature(doc_auto_cfg))]
#![deny(clippy::all)]
Expand Down

0 comments on commit cda246d

Please sign in to comment.