mirror of
https://github.com/sayanarijit/xplr
synced 2024-11-04 18:00:14 +00:00
Avoid unnecessary lambda
This commit is contained in:
parent
7142c97c7f
commit
45ad449eb3
@ -28,7 +28,7 @@ impl Action {
|
||||
if self.messages.is_empty() {
|
||||
None
|
||||
} else if read_only {
|
||||
if self.messages.iter().all(|m| m.is_read_only()) {
|
||||
if self.messages.iter().all(ExternalMsg::is_read_only) {
|
||||
Some(self)
|
||||
} else {
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user