aboutsummaryrefslogtreecommitdiff
path: root/src/primitive/peerptr.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/primitive/peerptr.rs2
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)))
}
}