endpoint-sec 0.6.0

High-level Rust wrappers around the Endpoint Security Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0597]: `v` does not live long enough
  --> tests/ui/test_client_cannot_outlive_handler.rs:7:19
   |
 4 |     let mut client = {
   |         ---------- borrow later stored here
 5 |         let v = vec![1, 2, 3];
   |             - binding `v` declared here
 6 |         let handler = |_: &mut Client<'_>, _| {
   |                       ----------------------- value captured here
 7 |             dbg!(&v);
   |                   ^ borrowed value does not live long enough
...
13 |     };
   |     - `v` dropped here while still borrowed