From aa3bc5459b58d6e3897d3cef8ae07d3c35d9e2a9 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 16 Jul 2022 20:07:59 +0200 Subject: remove remnants of trying to quickcheck things it never worked out, but a bit of support stuff remained. --- src/types.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/types.rs b/src/types.rs index c0c5dfe..c27b288 100644 --- a/src/types.rs +++ b/src/types.rs @@ -81,7 +81,6 @@ macro_rules! bytea_types { ( $( #[ $attr:meta ] )* struct $name:ident($inner:ty) as $sql_name:ident { - $( fn arbitrary($a:ident) -> _ { $ae:expr } )? fn decode($d:ident) -> _ { $de:expr } fn encode($e:ident) -> _ { $ee:expr } @@ -166,7 +165,6 @@ macro_rules! bytea_types { bytea_types! { #[derive(Clone, Debug, PartialEq, Eq)] struct HawkKey(SecretBytes<32>) as hawk_key { - fn arbitrary(a) -> _ { SecretBytes(a) } fn decode(v) -> _ { v.0.0.as_ref() } fn encode(v) -> _ { SecretBytes(v) } } @@ -200,14 +198,12 @@ bytea_types! { #[derive(Clone, Debug, PartialEq, Eq)] struct SecretKey(SecretBytes<32>) as secret_key { - fn arbitrary(a) -> _ { SecretBytes(a) } fn decode(v) -> _ { v.0.0.as_ref() } fn encode(v) -> _ { SecretBytes(v) } } #[derive(Clone, Debug, PartialEq, Eq)] struct VerifyHash(Output) as verify_hash { - fn arbitrary(a) -> _ { Output::new(<[u8; 32]>::as_ref(&a)).unwrap() } fn decode(v) -> _ { v.0.as_ref() } fn encode(v) -> _ { v } } -- cgit v1.2.3