Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed Oct 23, 2024
1 parent ff97ea7 commit 593a5d8
Show file tree
Hide file tree
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
Expand Up @@ -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
}
}
Expand Down
10 changes: 5 additions & 5 deletions scopegraphs/src/resolve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -654,7 +654,7 @@ impl<'storage, LABEL, DATA, CMPL> ScopeGraph<'storage, LABEL, DATA, CMPL> {
DefaultDataEquivalence,
>
where
'storage: 'sg,
'storage: 'rslv,
{
Query {
_phantom: PhantomData,
Expand Down

0 comments on commit 593a5d8

Please sign in to comment.