udev: use same order for bind arguments

This commit is contained in:
Victor Brekenfeld 2018-11-22 09:43:08 +01:00
parent e92044d213
commit f74af7ba18
1 changed files with 1 additions and 1 deletions

View File

@ -101,8 +101,8 @@ impl<T: UdevHandler + 'static> Drop for UdevBackend<T> {
/// Allows the backend to receive kernel events and thus to drive the `UdevHandler`.
/// No runtime functionality can be provided without using this function.
pub fn udev_backend_bind<T: UdevHandler + 'static, Data: 'static>(
handle: &LoopHandle<Data>,
udev: UdevBackend<T>,
handle: &LoopHandle<Data>,
) -> Result<Source<Generic<EventedFd<UdevBackend<T>>>>, InsertError<Generic<EventedFd<UdevBackend<T>>>>> {
let mut source = Generic::from_fd_source(udev);
source.set_interest(Ready::readable());