fix(macros): Mark the main generate function as must_use

The generated FileTree should be used, calling the function without
using it is useless.
This commit is contained in:
Benedikt Peetz 2024-03-27 22:14:43 +01:00
parent 73416da73c
commit db5cd1a29b
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 1 additions and 0 deletions

View File

@ -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();