Browse Source

No need for type parameter in impl anymore.

Andrew Walbran 2 years ago
parent
commit
6f5f190bd3
5 changed files with 5 additions and 5 deletions
  1. 1 1
      src/blk.rs
  2. 1 1
      src/console.rs
  3. 1 1
      src/gpu.rs
  4. 1 1
      src/input.rs
  5. 1 1
      src/net.rs

+ 1 - 1
src/blk.rs

@@ -16,7 +16,7 @@ pub struct VirtIOBlk<'a, H: Hal, T: Transport> {
     capacity: usize,
 }
 
-impl<'a, H: Hal, T: Transport> VirtIOBlk<'a, H, T> {
+impl<H: Hal, T: Transport> VirtIOBlk<'_, H, T> {
     /// Create a new VirtIO-Blk driver.
     pub fn new(mut transport: T) -> Result<Self> {
         transport.begin_init(|features| {

+ 1 - 1
src/console.rs

@@ -22,7 +22,7 @@ pub struct VirtIOConsole<'a, H: Hal, T: Transport> {
     pending_len: usize,
 }
 
-impl<'a, H: Hal, T: Transport> VirtIOConsole<'a, H, T> {
+impl<H: Hal, T: Transport> VirtIOConsole<'_, H, T> {
     /// Create a new VirtIO-Console driver.
     pub fn new(mut transport: T) -> Result<Self> {
         transport.begin_init(|features| {

+ 1 - 1
src/gpu.rs

@@ -32,7 +32,7 @@ pub struct VirtIOGpu<'a, H: Hal, T: Transport> {
     queue_buf_recv: &'a mut [u8],
 }
 
-impl<'a, H: Hal, T: Transport> VirtIOGpu<'a, H, T> {
+impl<H: Hal, T: Transport> VirtIOGpu<'_, H, T> {
     /// Create a new VirtIO-Gpu driver.
     pub fn new(mut transport: T) -> Result<Self> {
         transport.begin_init(|features| {

+ 1 - 1
src/input.rs

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

+ 1 - 1
src/net.rs

@@ -21,7 +21,7 @@ pub struct VirtIONet<'a, H: Hal, T: Transport> {
     send_queue: VirtQueue<'a, H>,
 }
 
-impl<'a, H: Hal, T: Transport> VirtIONet<'a, H, T> {
+impl<H: Hal, T: Transport> VirtIONet<'_, H, T> {
     /// Create a new VirtIO-Net driver.
     pub fn new(mut transport: T) -> Result<Self> {
         transport.begin_init(|features| {