mirror of https://github.com/helix-editor/helix
fix: clippy fixes
parent
7d17fd7ba3
commit
0fa6b1408b
|
@ -746,7 +746,7 @@ async fn test_hardlink_write() -> anyhow::Result<()> {
|
||||||
async fn edit_file_with_content(file_content: &[u8]) -> anyhow::Result<()> {
|
async fn edit_file_with_content(file_content: &[u8]) -> anyhow::Result<()> {
|
||||||
let mut file = tempfile::NamedTempFile::new()?;
|
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(
|
helpers::test_key_sequence(
|
||||||
&mut helpers::AppBuilder::new()
|
&mut helpers::AppBuilder::new()
|
||||||
|
|
|
@ -61,6 +61,7 @@ pub struct TestCase {
|
||||||
pub out_text: String,
|
pub out_text: String,
|
||||||
pub out_selection: Selection,
|
pub out_selection: Selection,
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub line_feed_handling: LineFeedHandling,
|
pub line_feed_handling: LineFeedHandling,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,7 +426,7 @@ pub fn reload_file(file: &mut NamedTempFile) -> anyhow::Result<()> {
|
||||||
let f = std::fs::OpenOptions::new()
|
let f = std::fs::OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.read(true)
|
.read(true)
|
||||||
.open(&path)?;
|
.open(path)?;
|
||||||
*file.as_file_mut() = f;
|
*file.as_file_mut() = f;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue