Skip to content

Commit 697702d

Browse files
committed
Fix some warnings
1 parent e28f13d commit 697702d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/aml/namespace.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use super::object::WrappedObject;
2-
use crate::aml::{AmlError, object::Object};
2+
use crate::aml::AmlError;
33
use alloc::{
44
collections::btree_map::BTreeMap,
55
string::{String, ToString},
6-
sync::Arc,
76
vec,
87
vec::Vec,
98
};

src/aml/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Object {
160160
}
161161
}
162162

163-
pub fn as_string(&self) -> Result<Cow<str>, AmlError> {
163+
pub fn as_string(&self) -> Result<Cow<'_, str>, AmlError> {
164164
if let Object::String(value) = self {
165165
Ok(Cow::from(value))
166166
} else {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//! interfaces, such as [`PlatformInfo`], [`PciConfigRegions`], or [`HpetInfo`].
3333
3434
#![no_std]
35-
#![feature(allocator_api, let_chains, inherent_str_constructors)]
35+
#![feature(allocator_api, let_chains)]
3636

3737
#[cfg_attr(test, macro_use)]
3838
#[cfg(test)]

0 commit comments

Comments
 (0)