From 35fc98269060737949d2d50d508b04e4b5aeb9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20D=C3=B6nszelmann?= Date: Wed, 23 Oct 2024 15:05:28 +0200 Subject: [PATCH] fix clippy --- scopegraphs/src/render/mod.rs | 3 ++- scopegraphs/src/resolve/mod.rs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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,