refactor: pedantic cargo clippy, do not use Results for always-succeeding functions
This commit is contained in:
@@ -5,7 +5,7 @@ use crate::{
|
||||
ParserContext, ParserFile, iter_attribs, parse_children, parse_widget_universal,
|
||||
style::{parse_style, parse_text_style},
|
||||
},
|
||||
widget::label::{WidgetLabelParams, WidgetLabel},
|
||||
widget::label::{WidgetLabel, WidgetLabelParams},
|
||||
};
|
||||
|
||||
pub fn parse_widget_label<'a, U1, U2>(
|
||||
@@ -36,9 +36,9 @@ pub fn parse_widget_label<'a, U1, U2>(
|
||||
let (new_id, _) =
|
||||
ctx
|
||||
.layout
|
||||
.add_child(parent_id, WidgetLabel::create(&mut i18n, params)?, style)?;
|
||||
.add_child(parent_id, WidgetLabel::create(&mut i18n, params), style)?;
|
||||
|
||||
parse_widget_universal(file, ctx, node, new_id)?;
|
||||
parse_widget_universal(file, ctx, node, new_id);
|
||||
parse_children(file, ctx, node, new_id)?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user