From 31cfde4eafc3db57cef87de173e90fe22c481aa4 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sun, 28 May 2017 09:17:36 -0700 Subject: [PATCH] Use Default::default() --- mount/redox/resource.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mount/redox/resource.rs b/mount/redox/resource.rs index aaa7a1f060..bd28e4df5f 100644 --- a/mount/redox/resource.rs +++ b/mount/redox/resource.rs @@ -94,18 +94,10 @@ impl Resource for DirResource { st_dev: 0, // TODO st_ino: node.0, st_mode: node.1.mode, - st_nlink: 0, st_uid: node.1.uid, st_gid: node.1.gid, st_size: try!(fs.node_len(self.block)), - st_blksize: 0, - st_blocks: 0, - st_mtime: 0, - st_mtime_nsec: 0, - st_atime: 0, - st_atime_nsec: 0, - st_ctime: 0, - st_ctime_nsec: 0, + ..Default::default() }; Ok(0)