Add note on a clippy suppression pointing to relevant clippy issue

This commit is contained in:
Imbris 2021-09-26 11:24:30 -04:00
parent 746a6efb7f
commit 67e3b87717
2 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,7 @@ pub enum BanErrorKind {
#[allow(dead_code)]
pub struct BanError {
kind: BanErrorKind,
/// Uuid of affected
/// Uuid of affected user
uuid: Uuid,
/// Username of affected user (as of ban/unban time).
username: String,

View File

@ -378,6 +378,7 @@ impl Controls {
.position(|i| i.character.id == Some(id))
});
// TODO: this appears to be instance of https://github.com/rust-lang/rust-clippy/issues/7579
#[allow(clippy::if_same_then_else)]
if let Some(error) = error {
// TODO: use more user friendly errors with suggestions on potential solutions