Skip to content

Commit

Permalink
Fix more clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Apr 10, 2024
1 parent dafc603 commit 4f8a4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> for $name {
fn from(id: String) -> Self {
Self(id)
Expand Down
2 changes: 1 addition & 1 deletion src/query/instances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ pub struct Instance {

impl Queryable<Authentication, crate::model::Instance> 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)
}
}

0 comments on commit 4f8a4e0

Please sign in to comment.