mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: fix some strict clippy warnings
This commit is contained in:
parent
87a6523367
commit
5136637752
6 changed files with 51 additions and 60 deletions
|
@ -97,10 +97,10 @@ pub trait IronbarLabelExt {
|
|||
|
||||
impl IronbarLabelExt for Label {
|
||||
fn set_label_escaped(&self, label: &str) {
|
||||
if !label.contains("<span") {
|
||||
self.set_label(&markup_escape_text(label));
|
||||
} else {
|
||||
if label.contains("<span") {
|
||||
self.set_label(label);
|
||||
} else {
|
||||
self.set_label(&markup_escape_text(label));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue