enable unused_qualifications lint

This commit is contained in:
Charles Hall 2024-05-21 22:00:54 -07:00
parent d7e945f4c5
commit 793d809ac6
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
7 changed files with 12 additions and 17 deletions

View file

@ -145,20 +145,17 @@ pub(crate) fn deserialize_from_str<
'de,
D: serde::de::Deserializer<'de>,
T: FromStr<Err = E>,
E: std::fmt::Display,
E: fmt::Display,
>(
deserializer: D,
) -> Result<T, D::Error> {
struct Visitor<T: FromStr<Err = E>, E>(std::marker::PhantomData<T>);
impl<T: FromStr<Err = Err>, Err: std::fmt::Display> serde::de::Visitor<'_>
impl<T: FromStr<Err = Err>, Err: fmt::Display> serde::de::Visitor<'_>
for Visitor<T, Err>
{
type Value = T;
fn expecting(
&self,
formatter: &mut std::fmt::Formatter<'_>,
) -> std::fmt::Result {
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(formatter, "a parsable string")
}