mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 04:23:22 +00:00
17 lines
318 B
Rust
17 lines
318 B
Rust
|
// originally from glacier/fixed/77218.rs
|
||
|
// ice while adjusting...
|
||
|
|
||
|
pub struct Cache {
|
||
|
data: Vec<i32>,
|
||
|
}
|
||
|
|
||
|
pub fn list_data(cache: &Cache, key: usize) {
|
||
|
for reference in vec![1, 2, 3] {
|
||
|
if
|
||
|
/* let */
|
||
|
Some(reference) = cache.data.get(key) {
|
||
|
unimplemented!()
|
||
|
}
|
||
|
}
|
||
|
}
|