diff --git a/crates/apub_lib/src/object_id.rs b/crates/apub_lib/src/object_id.rs index f7be4452c..6764f4c1d 100644 --- a/crates/apub_lib/src/object_id.rs +++ b/crates/apub_lib/src/object_id.rs @@ -170,10 +170,10 @@ where Kind: ApubObject + Send + 'static, for<'de2> ::ApubType: serde::Deserialize<'de2>, { - #[allow(clippy::to_string_in_display)] + #[allow(clippy::to_string_in_format_args)] fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { // Use to_string here because Url.display is not useful for us - write!(f, "{}", self.0) + write!(f, "{}", self.0.to_string()) } }