tamer: span: Resolve unusued import warning for debug diagnostic

main
Mike Gerwitz 2023-02-24 11:49:18 -05:00
parent 3587d032c3
commit 9eb1d226b2
1 changed files with 1 additions and 0 deletions

View File

@ -423,6 +423,7 @@ impl Span {
if ((irel_offset as usize).saturating_add(ilen as usize))
> self.len() as usize
{
#[cfg(debug_assertions)]
use crate::diagnose::Annotate;
debug_diagnostic_panic!(
self.error("attempting to slice this span").into(),