You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
llogiq opened this issue
Apr 10, 2016
· 2 comments
· Fixed by #850
Labels
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work on
However, when I change to strong.read().unwrap().call(), I get
src/signal.rs:412:25: 412:31 error: `strong` does not live long enough
src/signal.rs:412 strong.read().unwrap().call()
^~~~~~
src/signal.rs:410:29: 413:22 note: reference must be valid for the destruction scope surrounding block at 410:28...
src/signal.rs:410 move || {
src/signal.rs:411 let strong = sig.upgrade().unwrap();
src/signal.rs:412 strong.read().unwrap().call()
src/signal.rs:413 }
src/signal.rs:411:61: 413:22 note: ...but borrowed value is only valid for the block suffix following statement 0 at 411:60
src/signal.rs:411 let strong = sig.upgrade().unwrap();
src/signal.rs:412 strong.read().unwrap().call()
src/signal.rs:413 }
At the very least, the docs should reflect this possible problem. I note that this is within a move || { .. } closure. Perhaps this has something to do with the error.
The text was updated successfully, but these errors were encountered:
llogiq
added
C-bug
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
labels
Apr 10, 2016
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work on
From carboxyl:
However, when I change to
strong.read().unwrap().call()
, I getAt the very least, the docs should reflect this possible problem. I note that this is within a
move || { .. }
closure. Perhaps this has something to do with the error.The text was updated successfully, but these errors were encountered: