summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-04-15 20:38:44 +0000
committeredef <edef@unfathomable.blue>2022-04-15 20:38:44 +0000
commit4d05978dcd9dd3796e99b666347757300808cda4 (patch)
treeb32ce6c37450c5016f8c50d1024a5ac57aaaa872 /ripple
parent443d5fb95f15552eb73aac7165c969bf84af0648 (diff)
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
Diffstat (limited to 'ripple')
-rw-r--r--ripple/fossil/src/bin/mount.rs36
1 files changed, 18 insertions, 18 deletions
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,
 	}
 }