as_str() replaced by str_view()

This commit is contained in:
Christoffer Lerno
2023-09-24 23:50:16 +02:00
parent 3675254af4
commit a1ecf2211f
31 changed files with 223 additions and 222 deletions

View File

@@ -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)