Explorar o código

Moves a clippy attribute (#194)

Brooks hai 1 ano
pai
achega
076329381a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      memory-management/src/aligned_memory.rs

+ 1 - 1
memory-management/src/aligned_memory.rs

@@ -207,8 +207,8 @@ impl<const ALIGN: usize, T: AsRef<[u8]>> From<T> for AlignedMemory<ALIGN> {
 }
 
 #[cfg(test)]
+#[allow(clippy::arithmetic_side_effects)]
 mod tests {
-    #![allow(clippy::arithmetic_side_effects)]
     use {super::*, std::io::Write};
 
     fn do_test<const ALIGN: usize>() {