From 530738cfe9b3b6936bca23b5359e0ba7bccc33f6 Mon Sep 17 00:00:00 2001 From: Quentin de Quelen Date: Wed, 20 Nov 2019 14:12:12 +0100 Subject: [PATCH] Format code --- meilidb-core/src/store/main.rs | 2 +- meilidb-http/src/routes/mod.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meilidb-core/src/store/main.rs b/meilidb-core/src/store/main.rs index bc5fe1d10..04ea6aee5 100644 --- a/meilidb-core/src/store/main.rs +++ b/meilidb-core/src/store/main.rs @@ -51,7 +51,7 @@ impl Main { pub fn created_at(self, reader: &heed::RoTxn) -> ZResult>> { self.main.get::(reader, CREATED_AT) } - + pub fn put_updated_at(self, writer: &mut heed::RwTxn) -> ZResult<()> { self.main .put::(writer, UPDATED_AT, &Utc::now()) diff --git a/meilidb-http/src/routes/mod.rs b/meilidb-http/src/routes/mod.rs index 42778f641..e48e9dffa 100644 --- a/meilidb-http/src/routes/mod.rs +++ b/meilidb-http/src/routes/mod.rs @@ -60,7 +60,11 @@ pub fn load_routes(app: &mut tide::App) { }); router.at("/synonym").nest(|router| { - router.at("/").get(synonym::list).post(synonym::create).delete(synonym::clear); + router + .at("/") + .get(synonym::list) + .post(synonym::create) + .delete(synonym::clear); router .at("/:synonym")