Skip to content

Commit 3568b12

Browse files
author
m1guelperez
committed
Resolved typos and deleted unused variable.
1 parent 3203c74 commit 3568b12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/fs/tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,14 +907,13 @@ fn symlink_noexist() {
907907
#[test]
908908
fn read_link() {
909909
if cfg!(windows) {
910-
let environment_variable = "CI";
911910
// directory symlink
912911
assert_eq!(check!(fs::read_link(r"C:\Users\All Users")), Path::new(r"C:\ProgramData"));
913912
// junction
914913
assert_eq!(check!(fs::read_link(r"C:\Users\Default User")), Path::new(r"C:\Users\Default"));
915914
// junction with special permissions
916915
// Since not all localized windows versions contain the folder "Documents and settings" in english,
917-
// we will briefly check, if it exists and otherwise skip the test. Except durin CI we will always execute the test.
916+
// we will briefly check, if it exists and otherwise skip the test. Except during CI we will always execute the test.
918917
if Path::new(r"C:\Documents and settings\").exists() || env::var_os("CI").is_some() {
919918
assert_eq!(
920919
check!(fs::read_link(r"C:\Documents and settings\")),

0 commit comments

Comments
 (0)