diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-11 22:15:41 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-12 16:17:27 -0700 |
commit | 28549f676e040c96bfae575535dea7e0ecdf0f41 (patch) | |
tree | fdfadc8fc24ee4ae4c5bef7dbf03431c19abcad9 /lib/btrfs/btrfstree | |
parent | cfcc753dc8906817e15b1b7c36b4dc12462d12e4 (diff) |
Change how constants are declared to play nice with godoc
Switch to
NAME Type = val
instead of
NAME = Type(val)
Diffstat (limited to 'lib/btrfs/btrfstree')
-rw-r--r-- | lib/btrfs/btrfstree/types_node.go | 6 | ||||
-rw-r--r-- | lib/btrfs/btrfstree/types_superblock.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/btrfs/btrfstree/types_node.go b/lib/btrfs/btrfstree/types_node.go index fd4c939..0a89e05 100644 --- a/lib/btrfs/btrfstree/types_node.go +++ b/lib/btrfs/btrfstree/types_node.go @@ -58,7 +58,7 @@ var ( ) const ( - NodeWritten = NodeFlags(1 << iota) + NodeWritten NodeFlags = 1 << iota NodeReloc ) @@ -73,8 +73,8 @@ func (f NodeFlags) String() string { return fmtutil.BitfieldString(f, no type BackrefRev uint8 const ( - OldBackrefRev = BackrefRev(iota) - MixedBackrefRev = BackrefRev(iota) + OldBackrefRev BackrefRev = iota + MixedBackrefRev ) // Node: main ////////////////////////////////////////////////////////////////////////////////////// diff --git a/lib/btrfs/btrfstree/types_superblock.go b/lib/btrfs/btrfstree/types_superblock.go index 140d4a1..a9b1633 100644 --- a/lib/btrfs/btrfstree/types_superblock.go +++ b/lib/btrfs/btrfstree/types_superblock.go @@ -199,7 +199,7 @@ type RootBackup struct { type IncompatFlags uint64 const ( - FeatureIncompatMixedBackref = IncompatFlags(1 << iota) + FeatureIncompatMixedBackref IncompatFlags = 1 << iota FeatureIncompatDefaultSubvol FeatureIncompatMixedGroups FeatureIncompatCompressLZO |