Some clippy fixes (#36544)

These showed up today, so just applied the simplifications, which were
mostly switching matches to if let

Release Notes:

- N/A
This commit is contained in:
Ben Brandt
2025-08-20 03:40:39 +00:00
committed by GitHub
parent cac80e2ebd
commit ceec258bf3
3 changed files with 117 additions and 126 deletions
+4 -4
View File
@@ -299,10 +299,10 @@ impl NeovimConnection {
if let Some(NeovimData::Get { .. }) = self.data.front() {
self.data.pop_front();
};
if let Some(NeovimData::ReadRegister { name, value }) = self.data.pop_front() {
if name == register {
return value;
}
if let Some(NeovimData::ReadRegister { name, value }) = self.data.pop_front()
&& name == register
{
return value;
}
panic!("operation does not match recorded script. re-record with --features=neovim")