Skip to content

Commit

Permalink
Fix RoleTags deserialisation after removal of simd-json (serenity-rs#…
Browse files Browse the repository at this point in the history
…2742)

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 Oct 20, 2024
1 parent 5502c56 commit 194f5e6
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 @@ -233,6 +233,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 194f5e6

Please sign in to comment.