Skip to content

Commit b7007aa

Browse files
committed
style: fix clippy warnings
1 parent 912d45e commit b7007aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/src/compiler/ir/dfs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl<'a> DepthFirstSearch<'a> {
6262
/// (i.e., the siblings of the node that was just left) from being visited.
6363
/// The next event will then be the [`Event::Leave`] for the parent of the
6464
/// node that was exited.
65+
#[allow(dead_code)] // TODO: remove when this is used.
6566
pub fn prune(&mut self) {
6667
// Remove all Event::Enter from the stack until an Event::Leave.
6768
while let Some(Event::Enter(_)) = self.stack.last() {

lib/src/compiler/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ impl ReportBuilder {
350350
let cache_entry = code_cache.get(&source_id).unwrap();
351351
let src = cache_entry.code.as_str();
352352

353-
src[source_ref.span.range()].to_string()
353+
src[source_ref.span().range()].to_string()
354354
}
355355

356356
/// Creates a new error or warning report.

0 commit comments

Comments
 (0)