Clarify comment

This commit is contained in:
Drakulix 2017-11-25 13:58:59 +01:00
parent b4be5a5786
commit ed04f2d293
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ impl UdevHandler<GliumDrawer<DrmBackend>, DrmHandlerImpl> for UdevHandlerImpl {
} }
fn device_changed<'a, S: Into<StateProxy<'a>>>(&mut self, state: S, device: &StateToken<DrmDevice<GliumDrawer<DrmBackend>>>) { fn device_changed<'a, S: Into<StateProxy<'a>>>(&mut self, state: S, device: &StateToken<DrmDevice<GliumDrawer<DrmBackend>>>) {
//quick and dirty //quick and dirt, just re-init the device
let mut state = state.into(); let mut state = state.into();
self.device_removed(&mut state, device); self.device_removed(&mut state, device);
state.with_value(device, |state, device| self.scan_connectors(state, device)); state.with_value(device, |state, device| self.scan_connectors(state, device));