Skip to content

Commit bdbe655

Browse files
committed
Mark HarnessBuilder build functions with #[must_use]
1 parent b8dfb13 commit bdbe655

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/egui_kittest/src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl HarnessBuilder {
205205
/// });
206206
/// });
207207
/// ```
208+
#[must_use]
208209
pub fn build<'a>(self, app: impl FnMut(&egui::Context) + 'a) -> Harness<'a> {
209210
Harness::from_builder(self, AppKind::Context(Box::new(app)), (), None)
210211
}
@@ -224,6 +225,7 @@ impl HarnessBuilder {
224225
/// ui.label("Hello, world!");
225226
/// });
226227
/// ```
228+
#[must_use]
227229
pub fn build_ui<'a>(self, app: impl FnMut(&mut egui::Ui) + 'a) -> Harness<'a> {
228230
Harness::from_builder(self, AppKind::Ui(Box::new(app)), (), None)
229231
}

0 commit comments

Comments
 (0)