From: Matt Joiner Date: Thu, 22 May 2014 14:38:07 +0000 (+1000) Subject: Put interface assertion next to the asserted type X-Git-Tag: v1.0.0~1733 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=51cbfdf676cc2f83a8ed6e8f3861d73ba61b83ad;p=btrtrc.git Put interface assertion next to the asserted type --- diff --git a/fs/torrentfs.go b/fs/torrentfs.go index a6fb6e58..7a00f288 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -21,6 +21,8 @@ type torrentFS struct { mu sync.Mutex } +var _ fusefs.FSDestroyer = &torrentFS{} + var _ fusefs.NodeForgetter = rootNode{} type rootNode struct { @@ -236,8 +238,6 @@ func (me *torrentFS) Destroy() { me.mu.Unlock() } -var _ fusefs.FSDestroyer = &torrentFS{} - func New(cl *torrent.Client) *torrentFS { fs := &torrentFS{ Client: cl,