fix: clippy fixes

pull/13821/head
cor 2025-06-23 19:31:58 +02:00
parent 7d17fd7ba3
commit 0fa6b1408b
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -746,7 +746,7 @@ async fn test_hardlink_write() -> anyhow::Result<()> {
async fn edit_file_with_content(file_content: &[u8]) -> anyhow::Result<()> {
let mut file = tempfile::NamedTempFile::new()?;
file.as_file_mut().write_all(&file_content)?;
file.as_file_mut().write_all(file_content)?;
helpers::test_key_sequence(
&mut helpers::AppBuilder::new()

View File

@ -61,6 +61,7 @@ pub struct TestCase {
pub out_text: String,
pub out_selection: Selection,
#[allow(dead_code)]
pub line_feed_handling: LineFeedHandling,
}
@ -425,7 +426,7 @@ pub fn reload_file(file: &mut NamedTempFile) -> anyhow::Result<()> {
let f = std::fs::OpenOptions::new()
.write(true)
.read(true)
.open(&path)?;
.open(path)?;
*file.as_file_mut() = f;
Ok(())
}