about summary refs log tree commit diff
path: root/library/core/src/slice
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-05-23 13:38:52 +0200
committerjoboet <jonasboettiger@icloud.com>2024-05-23 13:38:52 +0200
commitc398b2c1933f284977cdc4e3866d8c67649cd581 (patch)
tree76e906ac45d55a57d8d2012e9641bd4ff3d3bde5 /library/core/src/slice
parentfde4a22da21e9d9b1488f075eae0092a4d0f93d0 (diff)
downloadrust-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.rs2
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.
 ///