Commit 8f532419 authored by Brad King's avatar Brad King 💬 Committed by Kitware Robot
Browse files

Merge topic 'asref-dates'

3a92c8af

 webhooks: add an AsRef<DateTime<UTC>> for the HookDate hack
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !31
parents bb05e549 3a92c8af
......@@ -42,6 +42,12 @@ impl Deserialize for HookDate {
}
}
impl AsRef<DateTime<UTC>> for HookDate {
fn as_ref(&self) -> &DateTime<UTC> {
&self.0
}
}
#[derive(Serialize, Deserialize, Debug)]
/// Project information exposed in hooks.
pub struct ProjectHookAttrs {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment