From b64ce0506671f72a5142c0e82673331dc687b9e2 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 3 Jan 2022 07:57:28 -0600 Subject: Generalize (AsRef) Reply::target() for Readlink --- src/fuse/ops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fuse/ops.rs') diff --git a/src/fuse/ops.rs b/src/fuse/ops.rs index c688669..31b2b75 100644 --- a/src/fuse/ops.rs +++ b/src/fuse/ops.rs @@ -162,8 +162,8 @@ op! { impl Reply { /// This inode corresponds to a symbolic link pointing to the given target path. - pub fn target(self, target: &OsStr) -> Done<'o> { - self.chain(OutputChain::tail(&[target.as_bytes()])) + pub fn target>(self, target: T) -> Done<'o> { + self.chain(OutputChain::tail(&[target.as_ref().as_bytes()])) } /// Same as [`Reply::target()`], except that the target path is taken from disjoint -- cgit v1.2.3