unfucked not found errors
This commit is contained in:
parent
8be8d0ebe1
commit
8fe959967e
|
@ -30,18 +30,17 @@ impl Server {
|
|||
warp::path!("@" / String)
|
||||
.and(Self::with_server(self.clone()))
|
||||
.and_then(|username: String, srv: Server| async move {
|
||||
match srv
|
||||
.hb
|
||||
srv.hb
|
||||
.render(
|
||||
"profile",
|
||||
&serde_json::json!(srv.profiler.profile(username).await?),
|
||||
&serde_json::json!(srv
|
||||
.profiler
|
||||
.profile(username)
|
||||
.await
|
||||
.map_err(|e| ServerError::from(e))?),
|
||||
)
|
||||
.map(|html| warp::reply::html(html))
|
||||
.map_err(|e| ServerError::from(e).reject_self())
|
||||
{
|
||||
Ok(resp) => Ok(resp),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue