diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 20:41:10 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 21:39:09 -0600 |
commit | 952b677bf7f10da93673e3671f764c54c454bbfe (patch) | |
tree | 57b31c8f72f76d60b89e0307069c9d15c6794326 /lib/btrfs/internal/misc.go | |
parent | 4e29bb393ec774f0a79c70d9d69c54fe4e8ecb72 (diff) |
Move ordered.go to lib/containers
Something about this trips a stack overflow in golangci-lint, so upgrade
golangci-lint to a commit that fixes this.
Diffstat (limited to 'lib/btrfs/internal/misc.go')
-rw-r--r-- | lib/btrfs/internal/misc.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/btrfs/internal/misc.go b/lib/btrfs/internal/misc.go index 49fe2bd..eb5c287 100644 --- a/lib/btrfs/internal/misc.go +++ b/lib/btrfs/internal/misc.go @@ -9,7 +9,7 @@ import ( "time" "git.lukeshu.com/btrfs-progs-ng/lib/binstruct" - "git.lukeshu.com/btrfs-progs-ng/lib/util" + "git.lukeshu.com/btrfs-progs-ng/lib/containers" ) type Generation uint64 @@ -26,13 +26,13 @@ func (k Key) String() string { } func (a Key) Cmp(b Key) int { - if d := util.CmpUint(a.ObjectID, b.ObjectID); d != 0 { + if d := containers.CmpUint(a.ObjectID, b.ObjectID); d != 0 { return d } - if d := util.CmpUint(a.ItemType, b.ItemType); d != 0 { + if d := containers.CmpUint(a.ItemType, b.ItemType); d != 0 { return d } - return util.CmpUint(a.Offset, b.Offset) + return containers.CmpUint(a.Offset, b.Offset) } type Time struct { |