summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-20 21:54:29 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-20 21:57:49 +0800
commit9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch)
tree65df323f6478bae51473a3d6471df39a596ce9c5 /protocol
parenta9e5c086584d3e697188be7003f564e7e2137135 (diff)
Apply clippy suggestions and improve code quality
Diffstat (limited to 'protocol')
-rw-r--r--protocol/src/address.rs9
-rw-r--r--protocol/src/protocol.rs2
2 files changed, 10 insertions, 1 deletions
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<Protocol> Default for Host<Protocol>
+where
+ Protocol: BasicProtocol,
+{
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl<Protocol> Host<Protocol>
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.
///