Apply #[must_use] to the right item

This commit is contained in:
syvb 2023-11-06 17:07:12 -05:00
parent a982174217
commit ba0e79ecbd

View file

@ -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 {