Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adbe0ad

Browse files
cleanup
Signed-off-by: Anhad Singh <[email protected]>
1 parent 4e8013a commit adbe0ad

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/aero_kernel/src/drivers/pci.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl<'a> CapabilityIter<'a> {
184184
}
185185
}
186186

187-
impl<'a> Iterator for CapabilityIter<'a> {
187+
impl Iterator for CapabilityIter<'_> {
188188
type Item = (u32, Capability);
189189

190190
fn next(&mut self) -> Option<Self::Item> {

src/aero_kernel/src/drivers/pty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl INodeInterface for Slave {
297297
for b in buffer.iter() {
298298
if *b == b'\n' {
299299
// ONLCR: Convert NL to CR + NL
300-
master.extend_from_slice(&[b'\r', b'\n']);
300+
master.extend_from_slice(b"\r\n");
301301
continue;
302302
}
303303

src/aero_kernel/src/rendy.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ pub struct Inner<'this> {
309309
color_list: ColorList,
310310
}
311311

312-
impl<'a> Inner<'a> {
312+
impl Inner<'_> {
313313
fn genloop<F>(
314314
&mut self,
315315
image: &Image,
@@ -793,13 +793,13 @@ impl<'a> core::ops::Deref for DebugRendy<'a> {
793793
}
794794
}
795795

796-
impl<'a> core::ops::DerefMut for DebugRendy<'a> {
796+
impl core::ops::DerefMut for DebugRendy<'_> {
797797
fn deref_mut(&mut self) -> &mut Self::Target {
798798
&mut self.inner
799799
}
800800
}
801801

802-
impl<'this> fmt::Write for DebugRendy<'this> {
802+
impl fmt::Write for DebugRendy<'_> {
803803
fn write_str(&mut self, string: &str) -> fmt::Result {
804804
for b in string.bytes() {
805805
self.performer.advance(&mut self.inner, b);
@@ -808,7 +808,7 @@ impl<'this> fmt::Write for DebugRendy<'this> {
808808
}
809809
}
810810

811-
impl<'a> vte::ansi::Handler for Inner<'a> {
811+
impl vte::ansi::Handler for Inner<'_> {
812812
fn input(&mut self, c: char) {
813813
self.write_character(c);
814814

@@ -883,8 +883,8 @@ impl<'a> vte::ansi::Handler for Inner<'a> {
883883
}
884884
}
885885

886-
unsafe impl<'this> Send for DebugRendy<'this> {}
887-
unsafe impl<'this> Sync for DebugRendy<'this> {}
886+
unsafe impl Send for DebugRendy<'_> {}
887+
unsafe impl Sync for DebugRendy<'_> {}
888888

889889
pub static DEBUG_RENDY: Once<Mutex<DebugRendy>> = Once::new();
890890

0 commit comments

Comments
 (0)