From d0fe0f06bc0758858ce90f0ab1adfb2b6c024b0b Mon Sep 17 00:00:00 2001 From: U9G Date: Tue, 29 Aug 2023 10:30:26 -0400 Subject: [PATCH] make CandidateValue.cloned pub(crate) --- trustfall_core/src/interpreter/hints/candidates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trustfall_core/src/interpreter/hints/candidates.rs b/trustfall_core/src/interpreter/hints/candidates.rs index 97ff6350..b7e2fe7b 100644 --- a/trustfall_core/src/interpreter/hints/candidates.rs +++ b/trustfall_core/src/interpreter/hints/candidates.rs @@ -30,7 +30,7 @@ pub enum CandidateValue { impl CandidateValue<&T> { /// Converts from `CandidateValue<&T>` to `CandidateValue`. - pub fn cloned(&self) -> CandidateValue { + pub(crate) fn cloned(&self) -> CandidateValue { match self { CandidateValue::Impossible => CandidateValue::Impossible, CandidateValue::Single(s) => CandidateValue::Single((*s).clone()),