# Remove \`Copy\` trait for enum Operator \(\#9378\) · gitcafe/zed

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

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

Visibility: public

Requested revision: badcd3f4d6e5dd0c3f8b8cf1be03c68120122d69

Requested commit: badcd3f4d6e5dd0c3f8b8cf1be03c68120122d69

Commit: badcd3f4d6e5dd0c3f8b8cf1be03c68120122d69

Tree: 0ace8cf5974ccf78cc1538ead24de603d670dbc9

Author: Hans

Committer: GitHub

## Message

```
Remove `Copy` trait for enum Operator (#9378)

In this commit, the Copy trait has been removed from Operator. This
change was necessary due to the value of operator may wish to attach a
motion type, which is not compatible with the Copy trait.

All instances where Operator was previously copied have been updated to
use the clone() or cloned() method instead. This includes function
parameters, variable assignments, and closures.
```

## Parents

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

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