diff options
| author | Max Audron <me@audron.dev> | 2026-02-21 14:35:01 +0100 |
|---|---|---|
| committer | Max Audron <me@audron.dev> | 2026-02-21 14:35:01 +0100 |
| commit | f42ef4bec6d1c63c0d8564cfb06e996666dedbe3 (patch) | |
| tree | e526bf4cae5ecf798469acc157b14122d4a5e25a /src/primitive/peerptr.rs | |
| parent | replace all match_variant instances with try_into (diff) | |
clean up clippy lints
Diffstat (limited to 'src/primitive/peerptr.rs')
| -rw-r--r-- | src/primitive/peerptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitive/peerptr.rs b/src/primitive/peerptr.rs index 499be41..f5fc042 100644 --- a/src/primitive/peerptr.rs +++ b/src/primitive/peerptr.rs @@ -23,7 +23,7 @@ impl Serialize for PeerPtr { impl Deserialize for PeerPtr { fn parse(b: &[u8]) -> Result<(usize, Self), crate::error::ProtocolError> { let (size, value) = i64::parse(b)?; - return Ok((size, PeerPtr(value))); + Ok((size, PeerPtr(value))) } } |
