fix(plugins): collapse the tables fixture field guard (#2041)

The tables test fixture's nested editable-field check tripped clippy::collapsible_if under -D warnings, failing the Plugins CI job. Collapsed it with unchanged behaviour and rebuilt the fixture.

Co-authored-by: arnaud-ritti <[email protected]>
Цей коміт міститься в:
Arnaud Ritti authored and GitHub committed 2026-11-08 02:39:28 +08:00
1 джерело f6531542de
коміт bb99c7c4d1
3 files changed
+6 -6

No files matched your search

Бінарний файл не відображається.
+1 -1
Переглянути файл
@@ -1 +1 @@
b3537c1754f80177a3bf46150da3ebab4853d61b8cad1aad41da3fdeee5a7c61
c6698547bcda49a08bacd6d0876af74ae901d4c32e3c32b014a7679fd96f32c0
+5 -5
Переглянути файл
@@ -81,11 +81,11 @@ impl Views for Tables {
fn handle(&mut self, view: &str, event: ViewEvent, _ctx: &Invocation) -> Result<(), Error> {
if view == "fields" {
if let ViewEvent::Field(key, value) = event {
if key == "editable" {
self.note = Some(value);
host::refresh_view("fields");
}
if let ViewEvent::Field(key, value) = event
&& key == "editable"
{
self.note = Some(value);
host::refresh_view("fields");
}
return Ok(());
}