diff options
Diffstat (limited to 'src/makefile/lookup_internal.rs')
-rw-r--r-- | src/makefile/lookup_internal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makefile/lookup_internal.rs b/src/makefile/lookup_internal.rs index c0fc08b..a497ab4 100644 --- a/src/makefile/lookup_internal.rs +++ b/src/makefile/lookup_internal.rs @@ -17,11 +17,11 @@ pub enum LookupInternal<'a> { } impl<'a> LookupInternal<'a> { - pub fn new_partial(targets: &'a Vec<&str>) -> Self { + pub const fn new_partial(targets: &'a Vec<&str>) -> Self { Self::Partial { targets } } - pub fn new( + pub const fn new( target: Option<&'a Target>, get_target: &'a dyn Fn(&str) -> Result<Rc<RefCell<Target>>>, ) -> Self { |