Browse Source

Merge pull request #20 from Property404/Property404/fix-tests-and-formatting

Fix doc tests and formatting
Wesley Norris 1 year ago
parent
commit
4a5dfca931
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/lib.rs
  2. 1 1
      src/node.rs

+ 2 - 2
src/lib.rs

@@ -35,7 +35,7 @@
 //!     }
 //!
 //!     if let Some(stdout) = chosen.stdout() {
-//!         println!("It would write stdout to: {}", stdout.name);
+//!         println!("It would write stdout to: {}", stdout.node().name);
 //!     }
 //!
 //!     let soc = fdt.find_node("/soc");
@@ -63,7 +63,7 @@ mod pretty_print;
 
 use node::MemoryReservation;
 use parsing::{BigEndianU32, CStr, FdtData};
-use standard_nodes::{Aliases, Chosen, Cpu, Memory, MemoryRegion, MemoryRange, Root};
+use standard_nodes::{Aliases, Chosen, Cpu, Memory, MemoryRange, MemoryRegion, Root};
 
 /// Possible errors when attempting to create an `Fdt`
 #[derive(Debug, Clone, Copy, PartialEq)]

+ 1 - 1
src/node.rs

@@ -4,7 +4,7 @@
 
 use crate::{
     parsing::{BigEndianU32, BigEndianU64, CStr, FdtData},
-    standard_nodes::{Compatible, MemoryRegion, MemoryRange},
+    standard_nodes::{Compatible, MemoryRange, MemoryRegion},
     Fdt,
 };