Skip to content

Commit

Permalink
Small change missed in #1456
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 6, 2025
1 parent f748a98 commit 0578066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dylint/src/package_options/auto_correct/short_id.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use dylint_internal::git2::{Commit, Oid};

const SHORT_ID_LEN: usize = 7;

pub trait ShortId {
fn short_id(&self) -> String;
}
Expand All @@ -10,8 +12,6 @@ impl ShortId for Commit<'_> {
}
}

const SHORT_ID_LEN: usize = 7;

impl ShortId for Oid {
fn short_id(&self) -> String {
self.to_string()[..SHORT_ID_LEN].to_owned()
Expand Down

0 comments on commit 0578066

Please sign in to comment.