diff --git a/src/server/forge/mod.rs b/src/server/forge/mod.rs index 8d35f4c2..55a9da2f 100644 --- a/src/server/forge/mod.rs +++ b/src/server/forge/mod.rs @@ -1,3 +1,5 @@ +use std::fmt::{Display, Formatter}; + pub mod forgejo; #[derive(Clone, Debug)] @@ -11,3 +13,8 @@ pub struct CommitHistories { pub struct Commit { pub sha: String, } +impl Display for Commit { + fn fmt(&self, f: &mut Formatter) -> std::fmt::Result { + write!(f, "{}", self.sha) + } +}