mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 18:48:11 +08:00
#[macro_use] the log crate (#775)
This commit is contained in:
committed by
Keavon Chambers
parent
655831eedf
commit
788552e10c
@@ -34,10 +34,9 @@ impl<F: Fn(&MessageDiscriminant) -> Vec<KeysGroup>> MessageHandler<LayoutMessage
|
||||
let layout = if let Some(layout) = self.layouts.get_mut(layout_target as usize) {
|
||||
layout
|
||||
} else {
|
||||
log::warn!(
|
||||
warn!(
|
||||
"UpdateLayout was called referencing an invalid layout. `widget_id: {}`, `layout_target: {:?}`",
|
||||
widget_id,
|
||||
layout_target
|
||||
widget_id, layout_target
|
||||
);
|
||||
return;
|
||||
};
|
||||
@@ -45,10 +44,9 @@ impl<F: Fn(&MessageDiscriminant) -> Vec<KeysGroup>> MessageHandler<LayoutMessage
|
||||
let widget_holder = if let Some(widget_holder) = layout.iter_mut().find(|widget| widget.widget_id == widget_id) {
|
||||
widget_holder
|
||||
} else {
|
||||
log::warn!(
|
||||
warn!(
|
||||
"UpdateLayout was called referencing an invalid widget ID, although the layout target was valid. `widget_id: {}`, `layout_target: {:?}`",
|
||||
widget_id,
|
||||
layout_target
|
||||
widget_id, layout_target
|
||||
);
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user