From: AsamK Date: Sat, 12 Jul 2025 08:16:57 +0000 (+0200) Subject: Update to rust 2024 edition X-Git-Tag: v0.13.18~11 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/a96626c4685cfaf589deea45ff2d46e5d6883f3c Update to rust 2024 edition --- diff --git a/client/Cargo.toml b/client/Cargo.toml index 85daf1e2..aff9ede4 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "signal-cli-client" version = "0.0.1" -edition = "2021" +edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/client/src/jsonrpc.rs b/client/src/jsonrpc.rs index b085cde5..6598d525 100644 --- a/client/src/jsonrpc.rs +++ b/client/src/jsonrpc.rs @@ -417,6 +417,6 @@ pub async fn connect_unix( Ok(ClientBuilder::default().build_with_tokio(sender, receiver)) } -pub async fn connect_http(uri: &str) -> Result { +pub async fn connect_http(uri: &str) -> Result, Error> { HttpClientBuilder::default().build(uri) }