Skip to content

Commit 9cb5c73

Browse files
committed
---
yaml --- r: 130108 b: refs/heads/snap-stage3 c: 38bf999 h: refs/heads/master v: v3
1 parent c619408 commit 9cb5c73

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0bdac78da87605f6f7f6e7924872617226b19c85
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fca8a1d1510e8a526981eadd3c3fd221b501e6d6
4+
refs/heads/snap-stage3: 38bf999f4a5337022211c9b990fcb7dfe0bccf32
55
refs/heads/try: 28d5878c1f0465c11c8e7a3085008b0c592d48d0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/io/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ mod test {
12741274

12751275
error!(result, "couldn't recursively mkdir");
12761276
error!(result, "couldn't create directory");
1277-
error!(result, "mode=700");
1277+
error!(result, "mode=0700");
12781278
error!(result, format!("path={}", file.display()));
12791279
})
12801280

branches/snap-stage3/src/libstd/io/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ impl Default for FilePermission {
18381838
impl fmt::Show for FilePermission {
18391839
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
18401840
formatter.fill = '0';
1841-
formatter.width = Some(3);
1841+
formatter.width = Some(4);
18421842
(&self.bits as &fmt::Octal).fmt(formatter)
18431843
}
18441844
}
@@ -1949,13 +1949,13 @@ mod tests {
19491949
fn test_show() {
19501950
use super::*;
19511951

1952-
assert_eq!(format!("{}", UserRead), "400".to_string());
1953-
assert_eq!(format!("{}", UserFile), "644".to_string());
1954-
assert_eq!(format!("{}", UserExec), "755".to_string());
1955-
assert_eq!(format!("{}", UserRWX), "700".to_string());
1956-
assert_eq!(format!("{}", GroupRWX), "070".to_string());
1957-
assert_eq!(format!("{}", OtherRWX), "007".to_string());
1958-
assert_eq!(format!("{}", AllPermissions), "777".to_string());
1959-
assert_eq!(format!("{}", UserRead | UserWrite | OtherWrite), "602".to_string());
1952+
assert_eq!(format!("{}", UserRead), "0400".to_string());
1953+
assert_eq!(format!("{}", UserFile), "0644".to_string());
1954+
assert_eq!(format!("{}", UserExec), "0755".to_string());
1955+
assert_eq!(format!("{}", UserRWX), "0700".to_string());
1956+
assert_eq!(format!("{}", GroupRWX), "0070".to_string());
1957+
assert_eq!(format!("{}", OtherRWX), "0007".to_string());
1958+
assert_eq!(format!("{}", AllPermissions), "0777".to_string());
1959+
assert_eq!(format!("{}", UserRead | UserWrite | OtherWrite), "0602".to_string());
19601960
}
19611961
}

0 commit comments

Comments
 (0)