Skip to content

Commit

Permalink
fix: fix the doc missing in of crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Mar 11, 2024
1 parent 9767114 commit b045093
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/of/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! with the goal of having a very ergonomic and idiomatic API.
#![no_std]

#![allow(missing_docs)]
pub struct MachineFdt<'a>(fdt::Fdt<'a>);
pub mod kernel_nodes;
pub use fdt::standard_nodes::Cpu;
Expand Down
5 changes: 3 additions & 2 deletions crates/of/tests/of.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

static BST_DTB_DATA: &[u8] = include_bytes!("./bsta1000b-fada-bus.dtb");

fn setup() {
Expand Down Expand Up @@ -25,9 +26,9 @@ fn test_find_compatible() {
#[test]
fn test_pcsi() {
setup();
let of_pcsi = of::pcsi();
let of_pcsi= of::pcsi();
assert!(of_pcsi.is_some());
let of_pcsi = of_pcsi.unwrap();
let of_pcsi= of_pcsi.unwrap();
assert_eq!(of_pcsi.method(), "smc");
assert_eq!(of_pcsi.cpu_on().unwrap(), 0xC4000003);
assert_eq!(of_pcsi.cpu_off().unwrap(), 0x84000002);
Expand Down

0 comments on commit b045093

Please sign in to comment.