From 2a2109c955d70660d3838663d7f1934334a538c6 Mon Sep 17 00:00:00 2001 From: Gavrilikhin Daniil Date: Sat, 13 May 2023 22:48:59 +0800 Subject: [PATCH] Fix clippy --- src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.rs b/src/protocol.rs index 6f797b67..4b1a512f 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -459,7 +459,7 @@ impl From<(ByteOffset, usize)> for SourceSpan { fn from((start, len): (ByteOffset, usize)) -> Self { Self { offset: start.into(), - length: len.into(), + length: len, } } }