Make signup token transparent

This commit is contained in:
Kitaiti Makoto 2022-01-06 18:40:24 +09:00
parent a65775d85b
commit 9b4c678aa9

View file

@ -13,6 +13,7 @@ use std::ops::Deref;
const TOKEN_VALIDITY_HOURS: i64 = 2; const TOKEN_VALIDITY_HOURS: i64 = 2;
#[repr(transparent)]
pub struct Token(String); pub struct Token(String);
impl From<String> for Token { impl From<String> for Token {