mirror of
https://github.com/restic/restic.git
synced 2024-12-21 23:33:03 +00:00
fuse: add missing type assertion for optional interfaces
This commit is contained in:
parent
75ec7d3269
commit
de4f8b344e
3 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,8 @@ import (
|
|||
|
||||
// Statically ensure that *dir implement those interface
|
||||
var _ = fs.HandleReadDirAller(&dir{})
|
||||
var _ = fs.NodeGetxattrer(&dir{})
|
||||
var _ = fs.NodeListxattrer(&dir{})
|
||||
var _ = fs.NodeStringLookuper(&dir{})
|
||||
|
||||
type dir struct {
|
||||
|
|
|
@ -12,6 +12,8 @@ import (
|
|||
)
|
||||
|
||||
// Statically ensure that *link implements the given interface
|
||||
var _ = fs.NodeGetxattrer(&link{})
|
||||
var _ = fs.NodeListxattrer(&link{})
|
||||
var _ = fs.NodeReadlinker(&link{})
|
||||
|
||||
type link struct {
|
||||
|
|
|
@ -7,9 +7,13 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/anacrolix/fuse"
|
||||
"github.com/anacrolix/fuse/fs"
|
||||
"github.com/restic/restic/internal/restic"
|
||||
)
|
||||
|
||||
// Statically ensure that *other implements the given interface
|
||||
var _ = fs.NodeReadlinker(&other{})
|
||||
|
||||
type other struct {
|
||||
root *Root
|
||||
node *restic.Node
|
||||
|
|
Loading…
Reference in a new issue