Skip to content
Snippets Groups Projects
  • Lyude Paul's avatar
    d9246121
    rust: drm: Add Driver::AllocImpl<Driver = Self> bound · d9246121
    Lyude Paul authored
    
    We're going to be calling some methods from AllocImpl directly in
    Registration::new() - which means that the rust compiler needs to know that
    our associated AllocImpl trait uses us as a Driver trait. Otherwise, it'll
    complain about a missing trait bound.
    
    The simplest way to do this is to just add this as a trait bound for the
    associated Driver::Object trait.
    
    Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
    d9246121
    History
    rust: drm: Add Driver::AllocImpl<Driver = Self> bound
    Lyude Paul authored
    
    We're going to be calling some methods from AllocImpl directly in
    Registration::new() - which means that the rust compiler needs to know that
    our associated AllocImpl trait uses us as a Driver trait. Otherwise, it'll
    complain about a missing trait bound.
    
    The simplest way to do this is to just add this as a trait bound for the
    associated Driver::Object trait.
    
    Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>