sark 0.13.0

Simple Asynchronous Rust webKit - Server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0716]: temporary value dropped while borrowed
  --> tests/ui/request_borrow_cannot_escape_task.rs:22:1
   |
22 | #[sark_gen::handler]
   | ^^^^^^^^^^^^^^^^^^^-
   | |                  |
   | |                  temporary value is freed at the end of this statement
   | creates a temporary value which is freed while still in use
   | lifetime `'d` defined here
23 | async fn leak(request: Request, state: &State<'_>) -> Reply {
24 |     state.leaked.set(Some(request.payload));
   |     --------------------------------------- argument requires that borrow lasts for `'d`
   |
   = note: this error originates in the attribute macro `::sark::fiber_fn` (in Nightly builds, run with -Z macro-backtrace for more info)