Skip to content

Commit

Permalink
make CandidateValue.cloned pub(crate)
Browse files Browse the repository at this point in the history
  • Loading branch information
u9g committed Aug 29, 2023
1 parent 734020d commit d0fe0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trustfall_core/src/interpreter/hints/candidates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub enum CandidateValue<T> {

impl<T: Clone> CandidateValue<&T> {
/// Converts from `CandidateValue<&T>` to `CandidateValue<T>`.
pub fn cloned(&self) -> CandidateValue<T> {
pub(crate) fn cloned(&self) -> CandidateValue<T> {
match self {
CandidateValue::Impossible => CandidateValue::Impossible,
CandidateValue::Single(s) => CandidateValue::Single((*s).clone()),
Expand Down

0 comments on commit d0fe0f0

Please sign in to comment.