Remove usage of `std::path::absolute` from snapshot test (#11973)

This commit is contained in:
Jane Lewis 2024-06-21 12:21:12 -07:00 committed by GitHub
parent 611f4e5c5f
commit ad4a88657b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();