diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:54:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:57:49 +0800 |
| commit | 9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch) | |
| tree | 65df323f6478bae51473a3d6471df39a596ce9c5 /protocol/src/address.rs | |
| parent | a9e5c086584d3e697188be7003f564e7e2137135 (diff) | |
Apply clippy suggestions and improve code quality
Diffstat (limited to 'protocol/src/address.rs')
| -rw-r--r-- | protocol/src/address.rs | 9 |
1 files changed, 9 insertions, 0 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, |
