From 9a60751a901f568bdeb154c4115235d4f3a0f8b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 20 Mar 2026 21:54:29 +0800 Subject: Apply clippy suggestions and improve code quality --- protocol/src/address.rs | 9 +++++++++ protocol/src/protocol.rs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'protocol') diff --git a/protocol/src/address.rs b/protocol/src/address.rs index 60cc17c..3f927e0 100644 --- a/protocol/src/address.rs +++ b/protocol/src/address.rs @@ -47,6 +47,15 @@ where } } +impl Default for Host +where + Protocol: BasicProtocol, +{ + fn default() -> Self { + Self::new() + } +} + impl Host where Protocol: BasicProtocol, diff --git a/protocol/src/protocol.rs b/protocol/src/protocol.rs index a097989..4bcdbd2 100644 --- a/protocol/src/protocol.rs +++ b/protocol/src/protocol.rs @@ -74,7 +74,7 @@ pub trait BasicProtocol { /// Transfer indexes /// /// - `index_transfer` and `storage` represent the index file and - /// the corresponding block storage path, respectively. + /// the corresponding block storage path, respectively. /// - If `vault` is Some, send block information from the Vault. /// - If `workspace` is Some, send block information from the Workspace. /// -- cgit