Skip to content

Commit

Permalink
Silence deprecation warnings for show_discriminator in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Jan 14, 2025
1 parent 25a4de8 commit 5dbe2d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/content_safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,14 @@ mod tests {
content_safe(&cache, "<@100000000000000001>", &options, &[outside_cache_user])
);

#[allow(deprecated)]
let options = options.show_discriminator(false);
assert_eq!(
format!("@{}", user.name),
content_safe(&cache, "<@!100000000000000000>", &options, &[])
);

#[allow(deprecated)]
let options = options.show_discriminator(false);
assert_eq!(
format!("@{}", user.name),
Expand Down

0 comments on commit 5dbe2d3

Please sign in to comment.