diff --git a/src/id.rs b/src/id.rs index b132f97..6241ae1 100644 --- a/src/id.rs +++ b/src/id.rs @@ -212,11 +212,11 @@ impl From for Owner { } impl From 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), } } } diff --git a/src/lib.rs b/src/lib.rs index 1c12981..252f344 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)]