Fix unnecessary-mut-passed lint (#36490)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-08-19 14:20:01 +00:00
committed by GitHub
parent e3b593efbd
commit c4083b9b63
28 changed files with 103 additions and 104 deletions
@@ -811,7 +811,7 @@ mod tests {
pub fn expect_keystrokes(&mut self, expected: &[&str]) -> &mut Self {
let actual = self
.input
.read_with(&mut self.cx, |input, _| input.keystrokes.clone());
.read_with(&self.cx, |input, _| input.keystrokes.clone());
Self::expect_keystrokes_equal(&actual, expected);
self
}
@@ -820,7 +820,7 @@ mod tests {
pub fn expect_close_keystrokes(&mut self, expected: &[&str]) -> &mut Self {
let actual = self
.input
.read_with(&mut self.cx, |input, _| input.close_keystrokes.clone())
.read_with(&self.cx, |input, _| input.close_keystrokes.clone())
.unwrap_or_default();
Self::expect_keystrokes_equal(&actual, expected);
self