Update cosmic_ext_calculator.ftl #24
Annotations
2 warnings
you are using an explicit closure for cloning elements:
src/main.rs#L360
warning: you are using an explicit closure for cloning elements
--> src/app.rs:360:41
|
360 | if let Some(data) = self
| _________________________________________^
361 | | .nav
362 | | .data::<Calculation>(entity)
363 | | .map(|data| data.clone())
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `cloned` method
|
360 ~ if let Some(data) = self
361 + .nav
362 + .data::<Calculation>(entity).cloned()
|
|
1 warning emitted
warning: 1 warning emitted
|