Skip to content

Commit 794c8db

Browse files
jyn514Joshua Nelson
authored and
Joshua Nelson
committed
Fix crash when retrieving targets
1 parent 7435ebc commit 794c8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docbuilder/limits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Limits {
3939
if let Some(timeout) = row.get::<_, Option<i32>>("timeout_seconds") {
4040
limits.timeout = Duration::from_secs(timeout as u64);
4141
}
42-
if let Some(targets) = row.get::<_, Option<u32>>("max_targets") {
42+
if let Some(targets) = row.get::<_, Option<i32>>("max_targets") {
4343
limits.targets = targets as usize;
4444
}
4545
}

0 commit comments

Comments
 (0)