# Fix \`clippy::redundant_clone\` lint violations \(\#36558\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7bdc99abc15327db75baab28957cba7e7e9fa122)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7bdc99abc15327db75baab28957cba7e7e9fa122

Requested commit: 7bdc99abc15327db75baab28957cba7e7e9fa122

Commit: 7bdc99abc15327db75baab28957cba7e7e9fa122

Tree: f275a346fa6ba8ea48925abcab5f8f11243b9943

Author: tidely

Committer: GitHub

## Message

```
Fix `clippy::redundant_clone` lint violations (#36558)

This removes around 900 unnecessary clones, ranging from cloning a few
ints all the way to large data structures and images.

A lot of these were fixed using `cargo clippy --fix --workspace
--all-targets`, however it often breaks other lints and needs to be run
again. This was then followed up with some manual fixing.

I understand this is a large diff, but all the changes are pretty
trivial. Rust is doing some heavy lifting here for us. Once I get it up
to speed with main, I'd appreciate this getting merged rather sooner
than later.

Release Notes:

- N/A
```

## Parents

- [cf7c64d77f1806cdd34b3812bbf27681fb3cb905](https://git.cafe/gitcafe/zed/commit/cf7c64d77f1806cdd34b3812bbf27681fb3cb905?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7bdc99abc15327db75baab28957cba7e7e9fa122?format=markdown)
