Skip to content

Commit

Permalink
Fix RoleTags deserialisation after removal of simd-json (#2742)
Browse files Browse the repository at this point in the history
There was a comment here that said it was called by simd-json, so I
removed the function, but it turns out that serde_json also calls it.
  • Loading branch information
GnomedDev committed Mar 25, 2024
1 parent f6a7c5b commit 2191841
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/guild/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ mod bool_as_option_unit {
fn visit_none<E: Error>(self) -> Result<Self::Value, E> {
Ok(true)
}

fn visit_unit<E: Error>(self) -> Result<Self::Value, E> {
Ok(true)
}
}
}

Expand Down

0 comments on commit 2191841

Please sign in to comment.