aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/lookup_internal.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-11-11 12:29:28 -0700
committerMelody Horn <melody@boringcactus.com>2024-11-11 12:29:28 -0700
commit5aa6e1122830611dccc2eab9b7f4a53a10056111 (patch)
tree819bc0f574bdfeb8297dc29e002eae41d454ca5e /src/makefile/lookup_internal.rs
parent7043c362b259bd2e8ef63965583d217ebd87b865 (diff)
downloadmakers-5aa6e1122830611dccc2eab9b7f4a53a10056111.tar.gz
makers-5aa6e1122830611dccc2eab9b7f4a53a10056111.zip
ok clippy
Diffstat (limited to 'src/makefile/lookup_internal.rs')
-rw-r--r--src/makefile/lookup_internal.rs4
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 {