File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ impl<'a> DepthFirstSearch<'a> {
62
62
/// (i.e., the siblings of the node that was just left) from being visited.
63
63
/// The next event will then be the [`Event::Leave`] for the parent of the
64
64
/// node that was exited.
65
+ #[ allow( dead_code) ] // TODO: remove when this is used.
65
66
pub fn prune ( & mut self ) {
66
67
// Remove all Event::Enter from the stack until an Event::Leave.
67
68
while let Some ( Event :: Enter ( _) ) = self . stack . last ( ) {
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ impl ReportBuilder {
350
350
let cache_entry = code_cache. get ( & source_id) . unwrap ( ) ;
351
351
let src = cache_entry. code . as_str ( ) ;
352
352
353
- src[ source_ref. span . range ( ) ] . to_string ( )
353
+ src[ source_ref. span ( ) . range ( ) ] . to_string ( )
354
354
}
355
355
356
356
/// Creates a new error or warning report.
You can’t perform that action at this time.
0 commit comments