georust / topojson

TopoJSON bindings and utilities for Rust
MIT License
10 stars 8 forks source link

Minor: Clippy - removed needless borrow. #24

Closed martinfrances107 closed 9 months ago

martinfrances107 commented 9 months ago

Clippy is slowly improving its ruleset.

I've removed two examples of this form of warning.

warning: the borrowed expression implements the required traits
  --> src/topology.rs:37:36
   |
37 |             ::serde_json::to_value(&transform.translate).unwrap(),
   |                                    ^^^^^^^^^^^^^^^^^^^^ help: change this to: `transform.translate`
lnicola commented 9 months ago

bors r+

bors[bot] commented 9 months ago

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here. For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.