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

@@ -132,9 +132,9 @@ macro usz! print_gen(self, x)
$case String:
return self.write(x);
$case ZString:
return self.write(x.as_str());
return self.write(x.str_view());
$case DString:
return self.write(x.as_str());
return self.write(x.str_view());
$default:
$if @convertible(x, String):
return self.write((String)x);