summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-07-17 17:32:54 +0200
committerpennae <github@quasiparticle.net>2022-07-17 17:32:54 +0200
commit3eda99e9efbdfc2cb0e20932f20018d53baf5a64 (patch)
tree058d266f4a193bd4de931f39bb115c7225376507 /src/types.rs
parent1ef9d67fb6979ea91812c4ea892f7ecc12b3170f (diff)
downloadminor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.tar.gz
minor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.tar.xz
minor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.zip
make the Clone bytes types Copy as well
u8 arrays are copy, no need to not have our wrappers be copy.
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index 342deab..7699483 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -63,7 +63,7 @@ macro_rules! bytea_types {
$( $rest:tt )*
) => {
bytea_types!{
- #[derive(Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
+ #[derive(Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(try_from = "String", into = "String")]
struct $name($inner) as $sql_name {
fn decode(v) -> _ { &v.0[..] }