File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1740,6 +1740,11 @@ cfg_condition = "unix"
17401740name = " Gio.Vfs"
17411741status = " generate"
17421742concurrency = " send+sync"
1743+ [[object .function ]]
1744+ name = " get_file_for_path"
1745+ [[object .function .parameter ]]
1746+ name = " path"
1747+ string_type = " filename"
17431748
17441749[[object ]]
17451750name = " Gio.Volume"
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ unsafe impl Sync for Vfs {}
3838pub trait VfsExt : IsA < Vfs > + ' static {
3939 #[ doc( alias = "g_vfs_get_file_for_path" ) ]
4040 #[ 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 {
4242 unsafe {
4343 from_glib_full ( ffi:: g_vfs_get_file_for_path (
4444 self . as_ref ( ) . to_glib_none ( ) . 0 ,
45- path. to_glib_none ( ) . 0 ,
45+ path. as_ref ( ) . to_glib_none ( ) . 0 ,
4646 ) )
4747 }
4848 }
You can’t perform that action at this time.
0 commit comments