Commit 789b677b authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'debug-struct'

8579466a

 gitlab: use debug_struct for Debug impls
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !89
parents d0660e3a 8579466a
......@@ -33,7 +33,9 @@ pub struct Gitlab {
impl Debug for Gitlab {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Gitlab {{ {} }}", self.base_url)
f.debug_struct("Gitlab")
.field("base_url", &self.base_url)
.finish()
}
}
......
Markdown is supported
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