Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse::mount should take a generic AsRef<OsStr> argument #117

Open
asomers opened this issue Oct 27, 2018 · 0 comments
Open

fuse::mount should take a generic AsRef<OsStr> argument #117

asomers opened this issue Oct 27, 2018 · 0 comments

Comments

@asomers
Copy link
Contributor

asomers commented Oct 27, 2018

The current signature of fuse::mount requires providing an actual array of &OsStr references. Those are annoying to create, especially from constants. It would be more ergonomic if it could take any argument that implements AsRef<OsStr>. It would look something like this:

pub fn mount<FS: Filesystem, P: AsRef<Path>, O: AsRef<OsStr>>(
    filesystem: FS, 
    mountpoint: &P, 
    options: &[O]
) -> Result<()>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants