Skip to content

Commit 6f5f190

Browse files
committed
No need for type parameter in impl anymore.
1 parent 005dd18 commit 6f5f190

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/blk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct VirtIOBlk<'a, H: Hal, T: Transport> {
1616
capacity: usize,
1717
}
1818

19-
impl<'a, H: Hal, T: Transport> VirtIOBlk<'a, H, T> {
19+
impl<H: Hal, T: Transport> VirtIOBlk<'_, H, T> {
2020
/// Create a new VirtIO-Blk driver.
2121
pub fn new(mut transport: T) -> Result<Self> {
2222
transport.begin_init(|features| {

src/console.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct VirtIOConsole<'a, H: Hal, T: Transport> {
2222
pending_len: usize,
2323
}
2424

25-
impl<'a, H: Hal, T: Transport> VirtIOConsole<'a, H, T> {
25+
impl<H: Hal, T: Transport> VirtIOConsole<'_, H, T> {
2626
/// Create a new VirtIO-Console driver.
2727
pub fn new(mut transport: T) -> Result<Self> {
2828
transport.begin_init(|features| {

src/gpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct VirtIOGpu<'a, H: Hal, T: Transport> {
3232
queue_buf_recv: &'a mut [u8],
3333
}
3434

35-
impl<'a, H: Hal, T: Transport> VirtIOGpu<'a, H, T> {
35+
impl<H: Hal, T: Transport> VirtIOGpu<'_, H, T> {
3636
/// Create a new VirtIO-Gpu driver.
3737
pub fn new(mut transport: T) -> Result<Self> {
3838
transport.begin_init(|features| {

src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct VirtIOInput<'a, H: Hal, T: Transport> {
1717
event_buf: Box<[InputEvent; 32]>,
1818
}
1919

20-
impl<'a, H: Hal, T: Transport> VirtIOInput<'a, H, T> {
20+
impl<H: Hal, T: Transport> VirtIOInput<'_, H, T> {
2121
/// Create a new VirtIO-Input driver.
2222
pub fn new(mut transport: T) -> Result<Self> {
2323
let mut event_buf = Box::new([InputEvent::default(); QUEUE_SIZE]);

src/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct VirtIONet<'a, H: Hal, T: Transport> {
2121
send_queue: VirtQueue<'a, H>,
2222
}
2323

24-
impl<'a, H: Hal, T: Transport> VirtIONet<'a, H, T> {
24+
impl<H: Hal, T: Transport> VirtIONet<'_, H, T> {
2525
/// Create a new VirtIO-Net driver.
2626
pub fn new(mut transport: T) -> Result<Self> {
2727
transport.begin_init(|features| {

0 commit comments

Comments
 (0)