Apply clippy suggestions
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Rafael Caricio 2023-04-28 00:15:44 +02:00
parent 7281340423
commit d2075dcbd2
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ mod tests {
fn test_clean_content_empty() {
let content = " ";
let result = clean_content(content);
assert!(!result.is_ok());
assert!(result.is_err());
}
#[test]

View file

@ -23,6 +23,6 @@ mod tests {
let result_1 = validate_local_username("name_1");
assert!(result_1.is_ok());
let result_2 = validate_local_username("name&");
assert!(!result_2.is_ok());
assert!(result_2.is_err());
}
}