Browse Source

remove unnecessary Sized bound

Sized is implied by Clone
Tom Dohrmann 3 years ago
parent
commit
c8773c7146
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rsdp/src/handler.rs

+ 1 - 1
rsdp/src/handler.rs

@@ -84,7 +84,7 @@ where
 /// however you please, as long as they conform to the documentation of each function. The handler is stored in
 /// every `PhysicalMapping` so it's able to unmap itself when dropped, so this type needs to be something you can
 /// clone/move about freely (e.g. a reference, wrapper over `Rc`, marker struct, etc.).
-pub trait AcpiHandler: Clone + Sized {
+pub trait AcpiHandler: Clone {
     /// Given a physical address and a size, map a region of physical memory that contains `T` (note: the passed
     /// size may be larger than `size_of::<T>()`). The address is not neccessarily page-aligned, so the
     /// implementation may need to map more than `size` bytes. The virtual address the region is mapped to does not