Rename field for consistency

This commit is contained in:
Joscha 2023-08-06 13:11:43 +02:00
parent dca83eed55
commit 2be929ec94
2 changed files with 4 additions and 4 deletions

View file

@ -11,14 +11,14 @@ use crate::{config::Config, db, somehow};
struct Commit {
hash: String,
description: String,
short: String,
reachable: i64,
}
impl Commit {
fn new(hash: String, message: &str, reachable: i64) -> Self {
Self {
description: db::format_commit_short(&hash, message),
short: db::format_commit_short(&hash, message),
hash,
reachable,
}