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.
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 withmount2
/spawn_mount2
. That is, you can now pass in anything that isAsRef<Path>
as the mountpoint. Since&Path
isAsRef<Path>
,this won't break existing callsites.- clearly it will break some callsites where the compiler infers whichAsRef<T>
is the appropriate type forString
.