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

Remove mountpoint reference from {,spawn_}mount() #108

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

jmmv
Copy link
Contributor

@jmmv jmmv commented Jul 25, 2018

The mount() and spawn_mount() calls define mountpoint as a &P but
P is already an AsRef. This prevents passing the mountpoint
to these calls when it is already a reference without having to take
an additional reference to it. For example:

fn foo(mountpoint: &Path) {
fuse::mount(..., mountpoint, ...);
...
}

does not compile without passing mountpoint as &mountpoint to the
fuse::mount() call, but there is no reason that it should not.

To fix this, remove the extra reference reference qualifier.

The mount() and spawn_mount() calls define mountpoint as a &P but
P is already an AsRef<Path>.  This prevents passing the mountpoint
to these calls when it is already a reference without having to take
an additional reference to it.  For example:

fn foo(mountpoint: &Path) {
    fuse::mount(..., mountpoint, ...);
    ...
}

does not compile without passing mountpoint as &mountpoint to the
fuse::mount() call, but there is no reason that it should not.

To fix this, remove the extra reference reference qualifier.
@zargony
Copy link
Owner

zargony commented Aug 7, 2018

Absolutely. Thanks for fixing it.

@jmmv jmmv deleted the drop-mountpoint-ref branch September 22, 2018 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants