smol bot
Diffstat (limited to 'src/expose.rs')
| -rw-r--r-- | src/expose.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expose.rs b/src/expose.rs index c06d23f..a79d0e5 100644 --- a/src/expose.rs +++ b/src/expose.rs @@ -121,13 +121,13 @@ impl Server { get(|Path(file): Path<String>| async move { ( StatusCode::OK, - crate::bot::git::whos( + crate::bot::ownership::whos( match u64::from_str_radix(file.trim_end_matches(".msch"), 16) { Ok(x) => x, Err(_) => return (StatusCode::NOT_FOUND, "".into()), - } - .into(), - ), + }, + ) + .await, ) }), ) |