Skip to content

Commit 562ba79

Browse files
committed
bin, github: attributes on trait, not impl
1 parent 4851d2e commit 562ba79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const WIDTH_AGE: usize = 6;
2525
mod config;
2626

2727
trait FlagsExt {
28+
#[must_use]
2829
fn add_flags(&mut self, name: &'static str) -> Flags;
2930
}
3031

3132
impl FlagsExt for Row {
32-
#[must_use]
3333
fn add_flags(&mut self, name: &'static str) -> Flags {
3434
Flags { row: self, name, out: String::new() }
3535
}

github/dbtool/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Oxide Computer Company
2+
* Copyright 2025 Oxide Computer Company
33
*/
44

55
use anyhow::{anyhow, bail, Context, Result};
@@ -21,11 +21,11 @@ use std::time::{Duration, Instant};
2121
const SHORT_SHA_LEN: usize = 16;
2222

2323
trait FlagsExt {
24+
#[must_use]
2425
fn add_flags(&mut self, name: &'static str) -> Flags;
2526
}
2627

2728
impl FlagsExt for Row {
28-
#[must_use]
2929
fn add_flags(&mut self, name: &'static str) -> Flags {
3030
Flags { row: self, name, out: String::new() }
3131
}

0 commit comments

Comments
 (0)