From fd59f4d45204a7feb0c5842883e03b9581bb883d Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 2 May 2024 23:10:20 +0200 Subject: [PATCH] Fix new clippy lints for manual tostring impl --- lib/manifests/auth.rs | 5 +++++ lib/manifests/rokit.rs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/manifests/auth.rs b/lib/manifests/auth.rs index 5c9bf8a..23ccec9 100644 --- a/lib/manifests/auth.rs +++ b/lib/manifests/auth.rs @@ -1,3 +1,8 @@ +#![allow(clippy::to_string_trait_impl)] +// NOTE: We don't want to implement Display here since it may +// make library consumers think that auth manifests are meant +// to be displayed - they are only meant to be stringified. + use std::{collections::HashMap, path::Path, str::FromStr}; use toml_edit::{DocumentMut, Formatted, Item, Value}; diff --git a/lib/manifests/rokit.rs b/lib/manifests/rokit.rs index 58e1382..333dba0 100644 --- a/lib/manifests/rokit.rs +++ b/lib/manifests/rokit.rs @@ -1,3 +1,8 @@ +#![allow(clippy::to_string_trait_impl)] +// NOTE: We don't want to implement Display here since it may +// make library consumers think that Rokit manifests are meant +// to be displayed - they are only meant to be stringified. + use std::{path::Path, str::FromStr}; use toml_edit::{DocumentMut, Formatted, Item, Value};