File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1740,6 +1740,11 @@ cfg_condition = "unix"
1740
1740
name = " Gio.Vfs"
1741
1741
status = " generate"
1742
1742
concurrency = " send+sync"
1743
+ [[object .function ]]
1744
+ name = " get_file_for_path"
1745
+ [[object .function .parameter ]]
1746
+ name = " path"
1747
+ string_type = " filename"
1743
1748
1744
1749
[[object ]]
1745
1750
name = " Gio.Volume"
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ unsafe impl Sync for Vfs {}
38
38
pub trait VfsExt : IsA < Vfs > + ' static {
39
39
#[ doc( alias = "g_vfs_get_file_for_path" ) ]
40
40
#[ doc( alias = "get_file_for_path" ) ]
41
- fn file_for_path ( & self , path : & str ) -> File {
41
+ fn file_for_path ( & self , path : impl AsRef < std :: path :: Path > ) -> File {
42
42
unsafe {
43
43
from_glib_full ( ffi:: g_vfs_get_file_for_path (
44
44
self . as_ref ( ) . to_glib_none ( ) . 0 ,
45
- path. to_glib_none ( ) . 0 ,
45
+ path. as_ref ( ) . to_glib_none ( ) . 0 ,
46
46
) )
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments