mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix more clippy (#32740)
This commit is contained in:
parent
4e1f623666
commit
f29dd64a7b
25 changed files with 72 additions and 90 deletions
|
@ -982,7 +982,7 @@ impl<T: ClipboardProvider> TextInput<T> {
|
|||
|
||||
/// Whether the content is empty.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.lines.len() <= 1 && self.lines.get(0).map_or(true, |line| line.is_empty())
|
||||
self.lines.len() <= 1 && self.lines.first().map_or(true, |line| line.is_empty())
|
||||
}
|
||||
|
||||
/// The length of the content in bytes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue