summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-03 07:57:28 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-03 07:57:28 -0600
commitb64ce0506671f72a5142c0e82673331dc687b9e2 (patch)
tree44864641b0eed44976a304ca798cf9a9116139f3 /src
parent1a6552beb51334a1c3fa5069bbf3b62f2823980e (diff)
Generalize (AsRef<OsStr>) Reply::target() for Readlink
Diffstat (limited to 'src')
-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