Skip to content

Commit 1443053

Browse files
committed
refactor: Rely on inner data for Display impl of BuildInfoSchema
Signed-off-by: David Runge <[email protected]>
1 parent 9209124 commit 1443053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpm-buildinfo/src/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ impl Display for BuildInfoSchema {
202202
fmt,
203203
"{}",
204204
match self {
205-
BuildInfoSchema::V1(_) => "1",
206-
BuildInfoSchema::V2(_) => "2",
205+
BuildInfoSchema::V1(version) | BuildInfoSchema::V2(version) =>
206+
version.inner().major,
207207
}
208208
)
209209
}

0 commit comments

Comments
 (0)