From 7a4de76908aa88daf977643ac108e777ad078af4 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 5 Mar 2024 01:29:08 +0700 Subject: [PATCH] Fix review --- Cargo.toml | 4 +--- src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e0e9c90..c11efc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,13 +10,11 @@ rust-version = "1.62" [dependencies] bitflags = "1.2" -lazy_static = "1.0.1" [dev-dependencies] pretty_assertions = "0.6" lazy_static = "1.4" [features] -default = ["spin_no_std"] +default = ["std"] std = [] -spin_no_std = ["lazy_static/spin_no_std"] diff --git a/src/lib.rs b/src/lib.rs index 6cef1bc..6344d96 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,11 +156,10 @@ impl EntryPoint { /// # Example /// /// ``` - /// # extern crate failure; /// # extern crate dmidecode; - /// # use failure::Error; + /// # use std::error::Error; /// use dmidecode::EntryPoint; - /// # fn try_main() -> Result<(), Error> { + /// # fn try_main() -> Result<(), Box> { /// # /// const DMIDECODE_BIN: &'static [u8] = include_bytes!("../tests/data/dmidecode.bin"); ///