diff --git a/components/salsa-macro-rules/src/setup_input_struct.rs b/components/salsa-macro-rules/src/setup_input_struct.rs index a2a1d2fb..067bcdc3 100644 --- a/components/salsa-macro-rules/src/setup_input_struct.rs +++ b/components/salsa-macro-rules/src/setup_input_struct.rs @@ -143,6 +143,7 @@ macro_rules! setup_input_struct { // because $Configuration can't be named in `builder`. impl builder::$Builder { /// Creates the new input with the set values. + #[must_use] pub fn new<$Db>(self, db: &$Db) -> $Struct where // FIXME(rust-lang/rust#65991): The `db` argument *should* have the type `dyn Database` @@ -259,6 +260,7 @@ macro_rules! setup_input_struct { (builder.fields, stamps) } + #[must_use] pub struct $Builder { /// The field values. fields: ($($field_ty,)*),