Explorar el Código

Dismiss some compile-time warnings

The `unused_results` lint was complaining that the results of inserting into a `MockUsers` object weren't being inspected. These are mock users, so all that would be returned is `None` to indicate that they weren't already in the table -- they're fine to ignore! So, suppress the warnings for those two testing modules.
Benjamin Sago hace 10 años
padre
commit
3d3acc2e93
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/output/details.rs

+ 2 - 0
src/output/details.rs

@@ -771,6 +771,7 @@ pub mod test {
     // Metadata struct, which is what I was doing before!
     // Metadata struct, which is what I was doing before!
 
 
     mod users {
     mod users {
+        #![allow(unused_results)]
         use super::*;
         use super::*;
 
 
         #[test]
         #[test]
@@ -833,6 +834,7 @@ pub mod test {
     }
     }
 
 
     mod groups {
     mod groups {
+        #![allow(unused_results)]
         use super::*;
         use super::*;
 
 
         #[test]
         #[test]