Fix the http-ui crate

This commit is contained in:
Kerollmops 2021-06-14 18:06:23 +02:00
parent 312c2d1d8e
commit 78fe4259a9
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -391,7 +391,7 @@ async fn main() -> anyhow::Result<()> {
match result { match result {
Ok(_) => wtxn.commit().map_err(Into::into), Ok(_) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e) Err(e) => Err(e.into()),
} }
} }
UpdateMeta::ClearDocuments => { UpdateMeta::ClearDocuments => {
@ -401,7 +401,7 @@ async fn main() -> anyhow::Result<()> {
match builder.execute() { match builder.execute() {
Ok(_count) => wtxn.commit().map_err(Into::into), Ok(_count) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e) Err(e) => Err(e.into()),
} }
} }
UpdateMeta::Settings(settings) => { UpdateMeta::Settings(settings) => {
@ -471,7 +471,7 @@ async fn main() -> anyhow::Result<()> {
match result { match result {
Ok(_count) => wtxn.commit().map_err(Into::into), Ok(_count) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e) Err(e) => Err(e.into()),
} }
} }
UpdateMeta::Facets(levels) => { UpdateMeta::Facets(levels) => {
@ -486,7 +486,7 @@ async fn main() -> anyhow::Result<()> {
} }
match builder.execute() { match builder.execute() {
Ok(()) => wtxn.commit().map_err(Into::into), Ok(()) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e) Err(e) => Err(e.into()),
} }
} }
}; };