From ad4a88657b21d5ab471bb0b22c6309f9d794c64e Mon Sep 17 00:00:00 2001 From: Jane Lewis Date: Fri, 21 Jun 2024 12:21:12 -0700 Subject: [PATCH] Remove usage of `std::path::absolute` from snapshot test (#11973) --- crates/ruff_server/tests/notebook.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_server/tests/notebook.rs b/crates/ruff_server/tests/notebook.rs index d639655fd0..6bca95c023 100644 --- a/crates/ruff_server/tests/notebook.rs +++ b/crates/ruff_server/tests/notebook.rs @@ -22,7 +22,7 @@ struct NotebookChange { #[test] fn super_resolution_overview() { let file_path = - std::path::absolute(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap(); + std::fs::canonicalize(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap(); let file_url = lsp_types::Url::from_file_path(&file_path).unwrap(); let notebook = create_notebook(&file_path).unwrap();