diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-03 07:57:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-03 07:57:28 -0600 |
| commit | b64ce0506671f72a5142c0e82673331dc687b9e2 (patch) | |
| tree | 44864641b0eed44976a304ca798cf9a9116139f3 /src/fuse | |
| parent | 1a6552beb51334a1c3fa5069bbf3b62f2823980e (diff) | |
Generalize (AsRef<OsStr>) Reply::target() for Readlink
Diffstat (limited to 'src/fuse')
| -rw-r--r-- | src/fuse/ops.rs | 4 |
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 |
