summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/fuse/ops.rs4
1 files changed, 2 insertions, 2 deletions
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<T: AsRef<OsStr>>(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