Remove double bound for E

This commit is contained in:
Quat3rnion 2024-06-05 00:46:29 -04:00
parent c34b1da8d0
commit 0d01536f59
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ impl<'de> Deserialize<'de> for InviteFlags {
formatter.write_str("a raw u64 value of flags")
}
fn visit_u64<E: serde::de::Error>(self, v: u64) -> Result<Self::Value, E> where E: serde::de::Error {
fn visit_u64<E: serde::de::Error>(self, v: u64) -> Result<Self::Value, E> {
InviteFlags::from_bits(v).ok_or(serde::de::Error::custom(Error::InvalidFlags(v)))
}
}