mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Janitor: Replace a == ""
with a.is_empty()
This commit is contained in:
parent
7193cbeec1
commit
b82ee6a470
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ fn are_token_touching_impl(token1_debug: &str, token2_debug: &str) -> bool {
|
|||
.rsplit(not_is_byte_char)
|
||||
.next()
|
||||
.map(|x| x.trim_matches(':'));
|
||||
end_of_token1.zip(begin_of_token2).map(|(a, b)| a != "" && a == b).unwrap_or(false)
|
||||
end_of_token1.zip(begin_of_token2).map(|(a, b)| !a.is_empty() && a == b).unwrap_or(false)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue