diff --git a/helix-term/tests/test/commands/write.rs b/helix-term/tests/test/commands/write.rs index 61e7d0c30cd2d..df5e1b8f706f3 100644 --- a/helix-term/tests/test/commands/write.rs +++ b/helix-term/tests/test/commands/write.rs @@ -540,9 +540,10 @@ async fn test_symlink_write() -> anyhow::Result<()> { let mut file = tempfile::NamedTempFile::new_in(&dir)?; let symlink_path = dir.path().join("linked"); - let mut symlink = symlink(file.path(), &symlink_path)?; + symlink(file.path(), &symlink_path)?; + let mut app = helpers::AppBuilder::new() - .with_file(symlink_path, None) + .with_file(&symlink_path, None) .build()?; test_key_sequence(