From 81b6cf51a3eeff636e5363d5838e51947e0c685f Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 5 Jul 2024 09:06:05 -0700 Subject: [PATCH] style: cargo fmt --all --- tests/extract_symlink.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/extract_symlink.rs b/tests/extract_symlink.rs index 5c075215..6e1a0595 100644 --- a/tests/extract_symlink.rs +++ b/tests/extract_symlink.rs @@ -1,6 +1,6 @@ #[test] #[cfg(unix)] -fn extract_should_respect_links(){ +fn extract_should_respect_links() { use std::{fs, io, path::PathBuf, str::FromStr}; use tempdir::TempDir; use zip::ZipArchive; @@ -11,13 +11,10 @@ fn extract_should_respect_links(){ let temp_dir = TempDir::new("pandoc_soft_links").unwrap(); archive.extract(&temp_dir).unwrap(); - let symlink_path = temp_dir.path().join("pandoc-3.2-arm64/bin/pandoc-lua"); - + // Read the target of the symbolic link let target_path = fs::read_link(&symlink_path).unwrap(); - + assert_eq!(target_path, PathBuf::from_str("pandoc").unwrap()); - - }