From d3f55ced941448de4e3b571ae6bdf6bc3942d4fb Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Fri, 19 Jan 2024 09:52:35 +0100 Subject: [PATCH 1/2] chore(docs): enable all features for docs.rs builds This enables all features for doc.rs builds, this should make sure all the optional features are documented. Fixes #59 --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a6b5309..351307c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,6 +56,9 @@ combined-transport = [] macros = [] default = [] +[package.metadata.docs.rs] +all-features = true + [[example]] name = "errors" required-features = ["flume-transport"] From 1652d5fb39e464ad8929861614ad1a3153d3feea Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Tue, 12 Mar 2024 11:36:32 +0200 Subject: [PATCH 2/2] chore: clippy --- tests/hyper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hyper.rs b/tests/hyper.rs index 6b26cd5..90c6e4f 100644 --- a/tests/hyper.rs +++ b/tests/hyper.rs @@ -1,5 +1,5 @@ #![cfg(feature = "hyper-transport")] -use std::{net::SocketAddr, result}; +use std::{assert, net::SocketAddr, result}; use ::hyper::Uri; use derive_more::{From, TryInto}; @@ -283,7 +283,7 @@ async fn hyper_channel_errors() -> anyhow::Result<()> { // response small - should succeed let res = client.rpc(BigResponseRequest(10_000_000)).await; - assert_matches!(res, Ok(_)); + assert!(res.is_ok()); assert_server_result!(Ok(())); // response big - should fail