Skip to content

Commit 5df77e3

Browse files
committed
replace .unwrap() in .match_version with actual error
1 parent 179f2f1 commit 5df77e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn match_version(
134134
WHERE normalize_crate_name(name) = normalize_crate_name($1)",
135135
&[&name],
136136
)
137-
.unwrap(); // FIXME: remove this unwrap when all handlers using it are migrated to axum
137+
.context("error fetching crate")?;
138138

139139
let row = rows.get(0).ok_or(AxumNope::CrateNotFound)?;
140140

0 commit comments

Comments
 (0)