mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
8 lines
198 B
Rust
8 lines
198 B
Rust
pub struct Thing;
|
|
|
|
pub fn has_thing(things: &[Thing]) -> bool {
|
|
let is_thing_ready = |_peer: &Thing| -> bool { todo!() };
|
|
things.iter().find(|p| is_thing_ready(p)).is_some()
|
|
}
|
|
|
|
fn main() {}
|