We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c756e1 commit 09c205bCopy full SHA for 09c205b
src/core/string.rs
@@ -244,7 +244,7 @@ mod tests {
244
let a: &NgxStr = "Hello World!".into();
245
246
let s = "Hello World!".to_string();
247
- let b: &NgxStr = NgxStr::from_bytes(s.as_bytes());
+ let b: &NgxStr = s.as_bytes().into();
248
249
// The compiler should detect that s is borrowed and fail.
250
// drop(s); // ☢️
0 commit comments