diff --git a/scopegraphs/src/render/mod.rs b/scopegraphs/src/render/mod.rs index bc5260c..e8e9ae5 100644 --- a/scopegraphs/src/render/mod.rs +++ b/scopegraphs/src/render/mod.rs @@ -118,7 +118,8 @@ pub trait RenderScopeData { self.render_node().is_some() } - fn explicit_relabel(&self, scope_id: usize) -> Option { + /// Allows you to relabel specific scope IDs, can be useful for documentation purposes. + fn explicit_relabel(&self, _scope_id: usize) -> Option { None } } diff --git a/scopegraphs/src/resolve/mod.rs b/scopegraphs/src/resolve/mod.rs index afaf19e..041ec5c 100644 --- a/scopegraphs/src/resolve/mod.rs +++ b/scopegraphs/src/resolve/mod.rs @@ -639,12 +639,12 @@ impl<'sg, 'storage, 'rslv, LABEL, DATA, CMPL, PWF, DWF, LO, DEq> impl<'storage, LABEL, DATA, CMPL> ScopeGraph<'storage, LABEL, DATA, CMPL> { /// Build a query over the scope graph. - pub fn query<'sg>( - &'sg self, + pub fn query<'rslv>( + &'rslv self, ) -> Query< 'storage, - 'sg, - '_, + 'rslv, + 'rslv, LABEL, DATA, CMPL, @@ -654,7 +654,7 @@ impl<'storage, LABEL, DATA, CMPL> ScopeGraph<'storage, LABEL, DATA, CMPL> { DefaultDataEquivalence, > where - 'storage: 'sg, + 'storage: 'rslv, { Query { _phantom: PhantomData,