Fix warnings
This commit is contained in:
parent
0604df7720
commit
197aba7d39
@ -1,5 +1,10 @@
|
||||
//! Yggdrasil OS user-kernel communication ABI
|
||||
#![no_std]
|
||||
#![allow(
|
||||
clippy::new_without_default,
|
||||
clippy::should_implement_trait,
|
||||
clippy::module_inception
|
||||
)]
|
||||
#![feature(trace_macros, const_trait_impl)]
|
||||
#![deny(missing_docs)]
|
||||
|
||||
|
@ -66,6 +66,16 @@ impl Path {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.0.is_empty()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn len(&self) -> usize {
|
||||
self.0.len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn as_ptr(&self) -> *const u8 {
|
||||
self.0.as_ptr()
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<str> for Path {
|
||||
|
@ -17,7 +17,7 @@ impl PathBuf {
|
||||
Self(String::from(s))
|
||||
}
|
||||
|
||||
pub fn push<P: AsRef<Path>>(&mut self, path: P) {
|
||||
pub fn push<P: AsRef<Path>>(&mut self, _path: P) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
|
@ -51,8 +51,4 @@ impl<const N: usize> PartialEq<&str> for FixedString<N> {
|
||||
fn eq(&self, other: &&str) -> bool {
|
||||
&self.data[..self.len] == other.as_bytes()
|
||||
}
|
||||
|
||||
fn ne(&self, other: &&str) -> bool {
|
||||
&self.data[..self.len] != other.as_bytes()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user