Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix clippy
Browse files Browse the repository at this point in the history
jdonszelmann committed Oct 23, 2024
1 parent ff97ea7 commit 35fc982
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion scopegraphs/src/render/mod.rs
Original file line number Diff line number Diff line change
@@ -118,7 +118,8 @@ pub trait RenderScopeData {
self.render_node().is_some()
}

fn explicit_relabel(&self, scope_id: usize) -> Option<String> {
/// Allows you to relabel specific scope IDs, can be useful for documentation purposes.
fn explicit_relabel(&self, _scope_id: usize) -> Option<String> {
None
}
}
10 changes: 5 additions & 5 deletions scopegraphs/src/resolve/mod.rs
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 35fc982

Please sign in to comment.