Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [INFO]: Installing wasm-bindgen...
- [INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
- [INFO]: :-) Done in 0.15s
- [INFO]: :-) Your wasm pkg is ready to publish at client/pkg.
- [cargo-make] INFO - Running Task: build_server
- [cargo-make] INFO - Execute Command: "cargo" "build" "--package" "server"
- Compiling server v0.1.0 (/home/winfield/Developer/memorsa/auth/server)
- error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
- --> server/src/db.rs:23:27
- |
- 23 | let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
- | ^^^^^
- |
- note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 22:5...
- --> server/src/db.rs:22:5
- |
- 22 | / fn handle(&mut self, _: RandomWorld, _: &mut Self::Context) -> Self::Result {
- 23 | | let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
- 24 | |
- 25 | | Box::pin(async move {
- ... |
- 36 | | })
- 37 | | }
- | |_____^
- note: ...so that reference does not outlive borrowed content
- --> server/src/db.rs:23:19
- |
- 23 | let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
- | ^^^^^^^
- = note: but, the lifetime must be valid for the static lifetime...
- = note: ...so that the expression is assignable:
- expected std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = std::result::Result<bytes::bytes::Bytes, std::io::Error>> + 'static)>>
- found std::pin::Pin<std::boxed::Box<dyn core::future::future::Future<Output = std::result::Result<bytes::bytes::Bytes, std::io::Error>>>>
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0495`.
- error: could not compile `server`.
- To learn more, run the command again with --verbose.
- [cargo-make] ERROR - Error while executing command, exit code: 101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement