feat(server): implement Display for forge::Commit
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

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; pub mod forgejo;
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
@ -11,3 +13,8 @@ pub struct CommitHistories {
pub struct Commit { pub struct Commit {
pub sha: String, pub sha: String,
} }
impl Display for Commit {
fn fmt(&self, f: &mut Formatter) -> std::fmt::Result {
write!(f, "{}", self.sha)
}
}