Skip to content

Commit ee5d6b6

Browse files
authored
Merge pull request #119 from Not-A-Normal-Robot/use-unsigned
Use unsigned ints instead of signed for stats
2 parents c9d4f75 + 7562df7 commit ee5d6b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sources/curserinth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct CurseRinthVersion {
3939
pub project_id: String,
4040
pub author_id: String,
4141
pub date_published: String,
42-
pub downloads: i64,
42+
pub downloads: u64,
4343
pub files: Vec<ModrinthFile>,
4444
}
4545

src/sources/modrinth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct ModrinthVersion {
5151
pub project_id: String,
5252
pub author_id: String,
5353
pub date_published: String,
54-
pub downloads: i64,
54+
pub downloads: u64,
5555
pub files: Vec<ModrinthFile>,
5656
}
5757

src/sources/spigot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ impl SpigotAPI<'_> {
9898
pub struct SpigotVersion {
9999
pub uuid: String,
100100
pub name: String,
101-
pub resource: i64,
102-
pub id: i64,
101+
pub resource: u64,
102+
pub id: u64,
103103
}

0 commit comments

Comments
 (0)