chore(#1474): add reason= to remaining bare clippy allows outside dashboard
This commit is contained in:
parent
49a0a0d15f
commit
7c9954ceec
12 changed files with 81 additions and 16 deletions
|
|
@ -62,7 +62,11 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
|
|||
/// output for every supported event type without re-implementing the
|
||||
/// per-arm dispatch. `print_event` is the only caller that adds the
|
||||
/// terminating newline.
|
||||
#[allow(clippy::too_many_lines)]
|
||||
#[allow(
|
||||
clippy::too_many_lines,
|
||||
reason = "flat per-event-type dispatch: one arm per timeline event kind; \
|
||||
splitting it would scatter the formatting without shrinking it"
|
||||
)]
|
||||
fn format_event(ev: &Value) -> String {
|
||||
let event_type = ev.get("type").and_then(Value::as_str).unwrap_or("?");
|
||||
let user = ev
|
||||
|
|
|
|||
Loading…
Reference in a new issue