diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-05-23 13:38:52 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2024-05-23 13:38:52 +0200 |
| commit | c398b2c1933f284977cdc4e3866d8c67649cd581 (patch) | |
| tree | 76e906ac45d55a57d8d2012e9641bd4ff3d3bde5 /library/core/src/slice | |
| parent | fde4a22da21e9d9b1488f075eae0092a4d0f93d0 (diff) | |
| download | rust-c398b2c1933f284977cdc4e3866d8c67649cd581.tar.gz rust-c398b2c1933f284977cdc4e3866d8c67649cd581.zip | |
core: use `Copy` in TAIT to fix clippy lint
Diffstat (limited to 'library/core/src/slice')
| -rw-r--r-- | library/core/src/slice/ascii.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/ascii.rs b/library/core/src/slice/ascii.rs index 20f5e321d4f..19c91ba2eb9 100644 --- a/library/core/src/slice/ascii.rs +++ b/library/core/src/slice/ascii.rs @@ -190,7 +190,7 @@ impl [u8] { } } -type EscapeByte = impl (Fn(&u8) -> ascii::EscapeDefault) + Clone; +type EscapeByte = impl (Fn(&u8) -> ascii::EscapeDefault) + Copy; /// An iterator over the escaped version of a byte slice. /// |
