From 4d05978dcd9dd3796e99b666347757300808cda4 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 15 Apr 2022 20:38:44 +0000 Subject: ripple/fossil/mount: unbreak rustfmt Apparently, rustfmt bugs out if you mix triple-slash and double-slash comments on a struct literal. Change-Id: I609ac42f86875b48947766fa9d67af7ef8997b9b --- ripple/fossil/src/bin/mount.rs | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'ripple/fossil') diff --git a/ripple/fossil/src/bin/mount.rs b/ripple/fossil/src/bin/mount.rs index 2f96a9c..3a5dbce 100644 --- a/ripple/fossil/src/bin/mount.rs +++ b/ripple/fossil/src/bin/mount.rs @@ -26,43 +26,43 @@ fn file_attr(ino: u64, node: &memtree::Node) -> fuser::FileAttr { let blksize = 512; fuser::FileAttr { - /// Inode number + // Inode number ino, - /// Size in bytes + // Size in bytes size, - /// Size in blocks - // TODO(edef): switch to u64::div_ceil + // Size in blocks + // TODO(edef): switch to u64::div_ceil blocks: (size + blksize as u64 - 1) / (blksize as u64), - /// Time of last access + // Time of last access atime: *EPOCH_PLUS_ONE, - /// Time of last modification + // Time of last modification mtime: *EPOCH_PLUS_ONE, - /// Time of last change + // Time of last change ctime: *EPOCH_PLUS_ONE, - /// Time of creation (macOS only) + // Time of creation (macOS only) crtime: *EPOCH_PLUS_ONE, - /// Kind of file (directory, file, pipe, etc) + // Kind of file (directory, file, pipe, etc) kind: match node { memtree::Node::Directory(_) => fuser::FileType::Directory, memtree::Node::File(_) => fuser::FileType::RegularFile, - memtree::Node::Link {..}=> fuser::FileType::Symlink, + memtree::Node::Link { .. } => fuser::FileType::Symlink, }, - /// Permissions - perm: match node{ + // Permissions + perm: match node { memtree::Node::Directory(_) => 0o755, _ => 0o644, }, - /// Number of hard links + // Number of hard links nlink: 1, - /// User id + // User id uid: 1000, - /// Group id + // Group id gid: 100, - /// Rdev + // Rdev rdev: 0, - /// Block size + // Block size blksize, - /// Flags (macOS only, see chflags(2)) + // Flags (macOS only, see chflags(2)) flags: 0, } } -- cgit 1.4.1