diff --git a/shell.nix b/shell.nix index 867d7f48..13ea4a0e 100644 --- a/shell.nix +++ b/shell.nix @@ -79,6 +79,8 @@ function refresh_toolchain { pkgs.rustfmt pkgs.perl pkgs.protobuf + pkgs.pkg-config + pkgs.openssl cargo2nix.packages.x86_64-linux.cargo2nix ] else []) ++ diff --git a/src/k2v-client/Cargo.toml b/src/k2v-client/Cargo.toml index e9ac4e20..358963d7 100644 --- a/src/k2v-client/Cargo.toml +++ b/src/k2v-client/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "k2v-client" version = "0.1.0" -edition = "2021" +edition = "2018" [dependencies] base64 = "0.13.0" diff --git a/src/k2v-client/src/lib.rs b/src/k2v-client/src/lib.rs index 63d97c90..a85c3773 100644 --- a/src/k2v-client/src/lib.rs +++ b/src/k2v-client/src/lib.rs @@ -200,9 +200,9 @@ impl K2vClient { // TODO poke team, draft doc outdated fot the return type of this endpoint /// Perform a ReadIndex request, listing partition key which have at least one associated /// sort key, and which matches the filter. - pub async fn read_index<'a>( + pub async fn read_index( &self, - filter: Filter<'a>, + filter: Filter<'_>, ) -> Result, Error> { let mut req = SignedRequest::new("GET", SERVICE, &self.region, &format!("/{}", self.bucket)); @@ -227,7 +227,7 @@ impl K2vClient { /// Perform an InsertBatch request, inserting multiple values at once. Note: this operation is /// *not* atomic: it is possible for some sub-operations to fails and others to success. In /// that case, failure is reported. - pub async fn insert_batch<'a>(&self, operations: &[BatchInsertOp<'a>]) -> Result<(), Error> { + pub async fn insert_batch(&self, operations: &[BatchInsertOp<'_>]) -> Result<(), Error> { let mut req = SignedRequest::new("POST", SERVICE, &self.region, &format!("/{}", self.bucket)); @@ -238,9 +238,9 @@ impl K2vClient { } /// Perform a ReadBatch request, reading multiple values or range of values at once. - pub async fn read_batch<'a>( + pub async fn read_batch( &self, - operations: &[BatchReadOp<'a>], + operations: &[BatchReadOp<'_>], ) -> Result>, Error> { let mut req = SignedRequest::new("POST", SERVICE, &self.region, &format!("/{}", self.bucket)); @@ -275,10 +275,7 @@ impl K2vClient { /// Perform a DeleteBatch request, deleting mutiple values or range of values at once, without /// providing causality information. - pub async fn delete_batch<'a>( - &self, - operations: &[BatchDeleteOp<'a>], - ) -> Result, Error> { + pub async fn delete_batch(&self, operations: &[BatchDeleteOp<'_>]) -> Result, Error> { let mut req = SignedRequest::new("POST", SERVICE, &self.region, &format!("/{}", self.bucket)); req.add_param("delete", "");