|
|
@ -22,7 +22,8 @@ pub struct Comment {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn serialize_gravatar<S>(email: &Option<String>, s: S) -> Result<S::Ok, S::Error>
|
|
|
|
fn serialize_gravatar<S>(email: &Option<String>, s: S) -> Result<S::Ok, S::Error>
|
|
|
|
where S: Serializer,
|
|
|
|
where
|
|
|
|
|
|
|
|
S: Serializer,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
match email {
|
|
|
|
match email {
|
|
|
|
Some(email) => s.serialize_some(&format!("{:x}", md5::compute(email.to_lowercase()))),
|
|
|
|
Some(email) => s.serialize_some(&format!("{:x}", md5::compute(email.to_lowercase()))),
|
|
|
|