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 05:40:39 +02:00 committed by GitHub
parent cac80e2ebd
commit ceec258bf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 117 additions and 126 deletions

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")