Skip to content

Commit

Permalink
Rust 1.81.0 clippy fixes
Browse files Browse the repository at this point in the history
Summary:
The Rust toolchain was just updated to 1.81.0 in D63864870. This diff
fixes the newly surfaced rust/clippy lints in rust_foundation owned
code.

Reviewed By: VladimirMakaev

Differential Revision: D64024076

fbshipit-source-id: ed284a9c627fee3e12f858ddd815c8a4a1bd031f
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 8, 2024
1 parent 036db11 commit 5d0cfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shed/memcache_stub/common/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl KeyGen {
C: AsRef<str>,
{
let category = category.as_ref();
let all_ascii = category.chars().all(|c| c.is_ascii());
let all_ascii = category.is_ascii();
let no_bad = !category.chars().any(|c| c == ' ' || c == ':');

assert!(all_ascii, "category is not pure ascii");
Expand Down

0 comments on commit 5d0cfd5

Please sign in to comment.