diff options
Diffstat (limited to 'mingling_pathf/src/config.rs')
| -rw-r--r-- | mingling_pathf/src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mingling_pathf/src/config.rs b/mingling_pathf/src/config.rs index 1199b2c..758aa34 100644 --- a/mingling_pathf/src/config.rs +++ b/mingling_pathf/src/config.rs @@ -17,7 +17,8 @@ pub struct PathfinderConfig { impl PathfinderConfig { /// Create a config with `use_dispatch_tree` enabled. - pub fn with_dispatch_tree() -> Self { + #[must_use] + pub const fn with_dispatch_tree() -> Self { Self { use_dispatch_tree: true, } |
