From bc3ee977f4e14c6b0d91b85a85e930d60af87405 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Fri, 26 Jan 2018 14:25:21 +0000
Subject: [PATCH] fs/hash: move interface assertion to tests so it doesn't pull
 in spf13/flag

---
 fs/hash/hash.go      | 4 ----
 fs/hash/hash_test.go | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/hash/hash.go b/fs/hash/hash.go
index c875f90f8..83d72cf24 100644
--- a/fs/hash/hash.go
+++ b/fs/hash/hash.go
@@ -11,7 +11,6 @@ import (
 
 	"github.com/ncw/rclone/backend/dropbox/dbhash"
 	"github.com/pkg/errors"
-	"github.com/spf13/pflag"
 )
 
 // Type indicates a standard hashing algorithm
@@ -110,9 +109,6 @@ func (h Type) Type() string {
 	return "string"
 }
 
-// Check it satisfies the interface
-var _ pflag.Value = (*Type)(nil)
-
 // fromTypes will return hashers for all the requested types.
 // The types must be a subset of SupportedHashes,
 // and this function must support all types.
diff --git a/fs/hash/hash_test.go b/fs/hash/hash_test.go
index 44ecfb3be..ba41621f3 100644
--- a/fs/hash/hash_test.go
+++ b/fs/hash/hash_test.go
@@ -6,10 +6,14 @@ import (
 	"testing"
 
 	"github.com/ncw/rclone/fs/hash"
+	"github.com/spf13/pflag"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
 
+// Check it satisfies the interface
+var _ pflag.Value = (*hash.Type)(nil)
+
 func TestHashSet(t *testing.T) {
 	var h hash.Set