From cfdbb904a46a5ca0b3dce547d5ffdd3520d4d17b Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 8 Mar 2023 10:35:45 +0000 Subject: [PATCH] Fix build --- Cargo.lock | 4 ++-- lib/Cargo.toml | 2 +- lib/src/fnc/http.rs | 21 +++++++++++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64e8c703..1c2ed8c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3952,9 +3952,9 @@ dependencies = [ [[package]] name = "trice" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fd6accd04d9bcc587c77f2df66cddaba0d4247dcdf9127c74e3c7a461568132" +checksum = "4bececc2de8a2e243c7132ed9d895814942829ca525415bfe334f125158a0042" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 8a557b05..9706e259 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -95,7 +95,7 @@ thiserror = "1.0.38" tikv = { version = "0.1.0", package = "tikv-client", optional = true } tokio-stream = { version = "0.1.11", optional = true } tokio-util = { version = "0.7.6", optional = true, features = ["compat"] } -trice = "0.2.0" +trice = "0.3.0" ulid = { version = "1.0.0", features = ["serde"] } url = "2.3.1" diff --git a/lib/src/fnc/http.rs b/lib/src/fnc/http.rs index 5140fc8e..b8dcf77b 100644 --- a/lib/src/fnc/http.rs +++ b/lib/src/fnc/http.rs @@ -3,32 +3,41 @@ use crate::err::Error; use crate::sql::value::Value; #[cfg(not(feature = "http"))] -pub async fn head((_, _): (Value, Option)) -> Result { +pub async fn head(_: &Context<'_>, (_, _): (Value, Option)) -> Result { Err(Error::HttpDisabled) } #[cfg(not(feature = "http"))] -pub async fn get((_, _): (Value, Option)) -> Result { +pub async fn get(_: &Context<'_>, (_, _): (Value, Option)) -> Result { Err(Error::HttpDisabled) } #[cfg(not(feature = "http"))] -pub async fn put((_, _, _): (Value, Option, Option)) -> Result { +pub async fn put( + _: &Context<'_>, + (_, _, _): (Value, Option, Option), +) -> Result { Err(Error::HttpDisabled) } #[cfg(not(feature = "http"))] -pub async fn post((_, _, _): (Value, Option, Option)) -> Result { +pub async fn post( + _: &Context<'_>, + (_, _, _): (Value, Option, Option), +) -> Result { Err(Error::HttpDisabled) } #[cfg(not(feature = "http"))] -pub async fn patch((_, _, _): (Value, Option, Option)) -> Result { +pub async fn patch( + _: &Context<'_>, + (_, _, _): (Value, Option, Option), +) -> Result { Err(Error::HttpDisabled) } #[cfg(not(feature = "http"))] -pub async fn delete((_, _): (Value, Option)) -> Result { +pub async fn delete(_: &Context<'_>, (_, _): (Value, Option)) -> Result { Err(Error::HttpDisabled) }