From 76d9c5e42397681445be8e71eca6d77c79956881 Mon Sep 17 00:00:00 2001 From: Aron Zwaan Date: Fri, 24 Nov 2023 16:44:17 +0100 Subject: [PATCH] Remove label borrowing --- scopegraphs-lib/src/resolve/topdown.rs | 51 ++++++++++++-------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/scopegraphs-lib/src/resolve/topdown.rs b/scopegraphs-lib/src/resolve/topdown.rs index 6e3ef6a..ef66560 100644 --- a/scopegraphs-lib/src/resolve/topdown.rs +++ b/scopegraphs-lib/src/resolve/topdown.rs @@ -15,7 +15,7 @@ pub fn resolve<'sg, SCOPE, LABEL, DATA>( sg: &'sg ScopeGraph, path_wellformedness: &mut impl for<'a> RegexMatcher<&'a LABEL>, data_wellformedness: &impl for<'a> Fn(&'a DATA) -> bool, - label_order: &impl Fn(&EdgeOrData<&LABEL>, &EdgeOrData<&LABEL>) -> bool, // FIXME: LabelOrder trait + label_order: &impl Fn(&EdgeOrData