Skip to content

Commit 625d3d3

Browse files
committed
Small change missed in #1456
1 parent 8acd6d8 commit 625d3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dylint/src/package_options/auto_correct/short_id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use dylint_internal::git2::{Commit, Oid};
22

3+
const SHORT_ID_LEN: usize = 7;
4+
35
pub trait ShortId {
46
fn short_id(&self) -> String;
57
}
@@ -10,8 +12,6 @@ impl ShortId for Commit<'_> {
1012
}
1113
}
1214

13-
const SHORT_ID_LEN: usize = 7;
14-
1515
impl ShortId for Oid {
1616
fn short_id(&self) -> String {
1717
self.to_string()[..SHORT_ID_LEN].to_owned()

0 commit comments

Comments
 (0)