Skip to content

Commit

Permalink
Make use of AddSpan and MapErrWithSpan conditional.
Browse files Browse the repository at this point in the history
This avoids warnings in default-feature builds, like `cargo test -p naga`.
  • Loading branch information
jimblandy authored and JCapucho committed Oct 25, 2021
1 parent 8c071ef commit 5cf11ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/valid/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ use super::{
analyzer::{UniformityDisruptor, UniformityRequirements},
ExpressionError, FunctionInfo, ModuleInfo,
};
use crate::span::{AddSpan as _, MapErrWithSpan as _, WithSpan};
use crate::span::WithSpan;
#[cfg(feature = "span")]
use crate::span::{AddSpan as _, MapErrWithSpan as _};

#[cfg(feature = "validate")]
use bit_set::BitSet;
Expand Down

0 comments on commit 5cf11ab

Please sign in to comment.