summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-07-16 20:07:59 +0200
committerpennae <github@quasiparticle.net>2022-07-17 17:23:37 +0200
commitaa3bc5459b58d6e3897d3cef8ae07d3c35d9e2a9 (patch)
tree8bc833a08d172422550582f53e37d47842975560
parent33d42e39f94c89c12f3f9908cfe808fc70572b17 (diff)
downloadminor-skulk-aa3bc5459b58d6e3897d3cef8ae07d3c35d9e2a9.tar.gz
minor-skulk-aa3bc5459b58d6e3897d3cef8ae07d3c35d9e2a9.tar.xz
minor-skulk-aa3bc5459b58d6e3897d3cef8ae07d3c35d9e2a9.zip
remove remnants of trying to quickcheck things
it never worked out, but a bit of support stuff remained.
-rw-r--r--src/types.rs4
1 files changed, 0 insertions, 4 deletions
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 }
}