mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
fuse: add missing type assertion for optional interfaces
This commit is contained in:
parent
6ec2b62ec5
commit
e9940f39dc
@ -20,6 +20,8 @@ import (
|
|||||||
|
|
||||||
// Statically ensure that *dir implement those interface
|
// Statically ensure that *dir implement those interface
|
||||||
var _ = fs.HandleReadDirAller(&dir{})
|
var _ = fs.HandleReadDirAller(&dir{})
|
||||||
|
var _ = fs.NodeGetxattrer(&dir{})
|
||||||
|
var _ = fs.NodeListxattrer(&dir{})
|
||||||
var _ = fs.NodeStringLookuper(&dir{})
|
var _ = fs.NodeStringLookuper(&dir{})
|
||||||
|
|
||||||
type dir struct {
|
type dir struct {
|
||||||
|
@ -12,6 +12,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Statically ensure that *link implements the given interface
|
// Statically ensure that *link implements the given interface
|
||||||
|
var _ = fs.NodeGetxattrer(&link{})
|
||||||
|
var _ = fs.NodeListxattrer(&link{})
|
||||||
var _ = fs.NodeReadlinker(&link{})
|
var _ = fs.NodeReadlinker(&link{})
|
||||||
|
|
||||||
type link struct {
|
type link struct {
|
||||||
|
@ -7,9 +7,13 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/anacrolix/fuse"
|
"github.com/anacrolix/fuse"
|
||||||
|
"github.com/anacrolix/fuse/fs"
|
||||||
"github.com/restic/restic/internal/restic"
|
"github.com/restic/restic/internal/restic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Statically ensure that *other implements the given interface
|
||||||
|
var _ = fs.NodeReadlinker(&other{})
|
||||||
|
|
||||||
type other struct {
|
type other struct {
|
||||||
root *Root
|
root *Root
|
||||||
node *restic.Node
|
node *restic.Node
|
||||||
|
Loading…
Reference in New Issue
Block a user