summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }
}