-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
it's built on linux just fine, but very hard to cross compile for windows from Linux, so I just installed rust on windows and start building, then it failed:
Compiling http-server v0.7.4 (C:\Users\Test\rust\http-server)
error[E0515]: cannot return value referencing local variable `bytes`
--> src\utils\url_encode.rs:50:13
|
39 | &bytes
| ------ `bytes` is borrowed here
...
50 | std::iter::once("/").chain(segment)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
|
= help: use `.collect()` to allocate the iterator
For more information about this error, try `rustc --explain E0515`.
error: could not compile `http-server` due to previous error
warning: build failed, waiting for other jobs to finish...
Metadata
Metadata
Assignees
Labels
No labels