mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
as_str() replaced by str_view()
This commit is contained in:
@@ -17,7 +17,7 @@ fn File! open(String filename, String mode)
|
||||
|
||||
fn File! open_path(Path path, String mode)
|
||||
{
|
||||
return from_handle(os::native_fopen(path.as_str(), mode));
|
||||
return from_handle(os::native_fopen(path.str_view(), mode));
|
||||
}
|
||||
|
||||
fn File from_handle(CFile file)
|
||||
|
||||
Reference in New Issue
Block a user