From 32f142f7670e498f96edc802882dbe695ecdd6b9 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 24 Jul 2021 02:42:35 -0700 Subject: [PATCH] util/deptype- enable zig fmt on the methods --- src/util/dep_type.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/dep_type.zig b/src/util/dep_type.zig index 30fc7d6128dbcf3d5d8b9f95719db13f9e22c377..b065f8931878686cced034055587df8a3c8ea749 100644 --- a/src/util/dep_type.zig +++ b/src/util/dep_type.zig @@ -31,6 +31,7 @@ pub const DepType = enum { // ipfs, // https://www.ipfs.com/ // hypercore, // https://hypercore-protocol.org/ + // zig fmt: on pub fn pull(self: DepType, rpath: []const u8, dpath: []const u8) !void { switch (self) { .local => {}, @@ -55,6 +56,7 @@ pub const DepType = enum { } } + // zig fmt: on pub fn update(self: DepType, dpath: []const u8, rpath: []const u8) !void { _ = rpath; @@ -74,6 +76,7 @@ pub const DepType = enum { } } + // zig fmt: on pub fn exact_version(self: DepType, mpath: []const u8) ![]const u8 { var mdir = try std.fs.cwd().openDir(mpath, .{}); defer mdir.close(); -- 2.54.0