From 4f8a4e0dd67ca9482f6071ec5287c3a3a2e90c0c Mon Sep 17 00:00:00 2001 From: Shayne Hartford Date: Tue, 9 Apr 2024 20:26:24 -0400 Subject: [PATCH] Fix more clippy lints --- src/id.rs | 4 ++-- src/query/instances.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/id.rs b/src/id.rs index b9702a6..6984e5d 100644 --- a/src/id.rs +++ b/src/id.rs @@ -58,14 +58,14 @@ macro_rules! add_id { } } - /// Infallible: `id::Type::from`("...") or "...".`into()`` + /// Infallible: `id::Type::from`("...") or "...".`into()` impl From<&str> for $name { fn from(id: &str) -> Self { Self(id.to_owned()) } } - /// Infallible: `id::Type::from`(String) or String.`into()`` + /// Infallible: `id::Type::from`(String) or String.`into()` impl From for $name { fn from(id: String) -> Self { Self(id) diff --git a/src/query/instances.rs b/src/query/instances.rs index f7e83cc..7d730f6 100644 --- a/src/query/instances.rs +++ b/src/query/instances.rs @@ -12,6 +12,6 @@ pub struct Instance { impl Queryable for Instance { fn url(&self, _: &Authentication) -> String { - format!("{}/instances/{}", crate::API_BASE_URI, self.id.to_string()) + format!("{}/instances/{}", crate::API_BASE_URI, self.id) } }