cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
835 stars 114 forks source link

Make Session::new consistent with mount2 #275

Closed daniel-levin closed 8 months ago

daniel-levin commented 8 months ago

Hiya @cberner!

I am a huge fan of this crate. It works very well for me. This PR is a small quality of life improvement that makes the Session::new method consistent with mount2/spawn_mount2. That is, you can now pass in anything that is AsRef<Path> as the mountpoint. Since &Path is AsRef<Path>, this won't break existing callsites. - clearly it will break some callsites where the compiler infers which AsRef<T> is the appropriate type for String.

cberner commented 8 months ago

Looks like there are some failures. Also, can you rebase on master?

daniel-levin commented 8 months ago

Fixed failures and rebased.