chore: justify the remaining keep-only cast + serde-default allows with reasons
This commit is contained in:
parent
30be7cd632
commit
f9fe3280f9
3 changed files with 13 additions and 3 deletions
|
|
@ -168,7 +168,10 @@ struct BashRunArgs {
|
|||
wait_seconds: Option<u64>,
|
||||
}
|
||||
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
#[allow(
|
||||
clippy::unnecessary_wraps,
|
||||
reason = "serde `#[serde(default = ...)]` requires the default fn's return type to match the field's `Option<u64>`, so the `Some` wrap is mandatory even though the value is constant"
|
||||
)]
|
||||
fn default_wait() -> Option<u64> {
|
||||
Some(3)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue