From db5cd1a29bfc6db89d635097b7e25ebde078c8ac Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 27 Mar 2024 22:14:43 +0100 Subject: [PATCH] fix(macros): Mark the main generate function as must_use The generated FileTree should be used, calling the function without using it is useless. --- src/macros/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macros/mod.rs b/src/macros/mod.rs index 035d8e1..da205bd 100644 --- a/src/macros/mod.rs +++ b/src/macros/mod.rs @@ -61,6 +61,7 @@ impl TrixyConfig { /// /* other config settings */; /// trixy_config.generate(); /// ``` + #[must_use] pub fn generate(&self) -> FileTree { let mut file_tree = FileTree::new();