Apply #[must_use] to the right item
This commit is contained in:
parent
a982174217
commit
ba0e79ecbd
1 changed files with 1 additions and 1 deletions
|
@ -23,8 +23,8 @@ macro_rules! pid_consts (
|
||||||
|
|
||||||
macro_rules! qid_unit_suffixes {
|
macro_rules! qid_unit_suffixes {
|
||||||
{ $($key:ident => $value:expr),+, } => {
|
{ $($key:ident => $value:expr),+, } => {
|
||||||
#[must_use]
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
#[must_use]
|
||||||
pub(crate) const fn unit_suffix(qid: Qid) -> Option<&'static str> {
|
pub(crate) const fn unit_suffix(qid: Qid) -> Option<&'static str> {
|
||||||
$(
|
$(
|
||||||
if qid.0 == ($key).0 {
|
if qid.0 == ($key).0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue