From f68ec7af1434d86f389b7154e43a7297116da1bf Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 8 Aug 2024 11:01:13 +0200 Subject: [PATCH] Fix compilation with rustc 1.4.2 More adaptation are required to be able to use the most recent version of Rust, therefore fix the dependencies and the compiler version. --- rust-toolchain.toml | 2 ++ src/main.rs | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..2769c7f --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.42.0" diff --git a/src/main.rs b/src/main.rs index f409d98..f33c949 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,11 +7,11 @@ use std::io; use mercator_db::CoreQueryParameters; use mercator_db::DataBase; -use parser::Executor; -use parser::FiltersParser; -use parser::Predictor; -use parser::QueryParser; -use parser::Validator; +use mercator_parser::Executor; +use mercator_parser::FiltersParser; +use mercator_parser::Predictor; +use mercator_parser::QueryParser; +use mercator_parser::Validator; fn main() { // If RUST_LOG is unset, set it to INFO, otherwise keep it as-is.