feat(server): implement Display for forge::Commit

This commit is contained in:
Paul Campbell 2024-04-10 10:54:41 +01:00
parent 546d91554c
commit d64024e1ab

View file

@ -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)
}
}