mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
- A dropped-handle spawn counts only as `thread::spawn` through a path, with or without a leading `::`, or as a bare `spawn` that a `use` brings in. A local `fn spawn` that runs the closure at once is reported. - A sleep that is the whole body of a closure without braces is judged by the call that takes the closure: a dropped `thread::spawn` is exempt, and a joined one is reported even inside a polling loop. - A `loop` used as a `let` value is checked for polling calls. - Calls inside the sleep's own argument and inside `stringify!` are not polling work, and neither are `unwrap`, `expect` and the `unwrap_or` family. - `Duration::new` is matched per call, with `Duration` as a whole path segment, so a local named `new` or `ScheduleDuration::new()` does not change the result.