diff --git a/examples/hello.rs b/examples/hello.rs index 23791a4..84d7c87 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -106,5 +106,5 @@ fn main() { .iter() .map(|o| o.as_ref()) .collect::>(); - fuse::mount(HelloFS, &mountpoint, &options).unwrap(); + fuse::mount(HelloFS, mountpoint, &options).unwrap(); } diff --git a/examples/null.rs b/examples/null.rs index efce27a..591809f 100644 --- a/examples/null.rs +++ b/examples/null.rs @@ -11,5 +11,5 @@ impl Filesystem for NullFS {} fn main() { env_logger::init(); let mountpoint = env::args_os().nth(1).unwrap(); - fuse::mount(NullFS, &mountpoint, &[]).unwrap(); + fuse::mount(NullFS, mountpoint, &[]).unwrap(); } diff --git a/src/lib.rs b/src/lib.rs index e3e38cd..0028631 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -375,7 +375,7 @@ pub trait Filesystem { /// /// Note that you need to lead each option with a separate `"-o"` string. See /// `examples/hello.rs`. -pub fn mount>(filesystem: FS, mountpoint: &P, options: &[&OsStr]) -> io::Result<()>{ +pub fn mount>(filesystem: FS, mountpoint: P, options: &[&OsStr]) -> io::Result<()>{ Session::new(filesystem, mountpoint.as_ref(), options).and_then(|mut se| se.run()) } @@ -384,6 +384,6 @@ pub fn mount>(filesystem: FS, mountpoint: &P, opt /// and therefore returns immediately. The returned handle should be stored /// to reference the mounted filesystem. If it's dropped, the filesystem will /// be unmounted. -pub unsafe fn spawn_mount<'a, FS: Filesystem+Send+'a, P: AsRef>(filesystem: FS, mountpoint: &P, options: &[&OsStr]) -> io::Result> { +pub unsafe fn spawn_mount<'a, FS: Filesystem+Send+'a, P: AsRef>(filesystem: FS, mountpoint: P, options: &[&OsStr]) -> io::Result> { Session::new(filesystem, mountpoint.as_ref(), options).and_then(|se| se.spawn()) }