We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f1d41 commit 2ea540eCopy full SHA for 2ea540e
src/pterodactyl/smp_commands.rs
@@ -363,7 +363,7 @@ fn sanitize_username(username: &str) -> Cow<str> {
363
}
364
let non_whitespace_index = result
365
.find(|char: char| !char.is_whitespace())
366
- .unwrap_or_else(|| result.len());
+ .unwrap_or(result.len());
367
result.drain(..non_whitespace_index);
368
369
if result.is_empty() {
0 commit comments