Skip to content

Commit c5ab01a

Browse files
djcRalith
authored andcommitted
proto: drop unused From impl
1 parent 98e2c26 commit c5ab01a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

quinn-proto/src/transport_error.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ impl fmt::Display for Error {
6060

6161
impl std::error::Error for Error {}
6262

63-
impl From<Code> for Error {
64-
fn from(x: Code) -> Self {
65-
Self {
66-
code: x,
67-
frame: None,
68-
reason: "".to_string(),
69-
crypto: None,
70-
}
71-
}
72-
}
73-
7463
/// Transport-level error code
7564
#[derive(Copy, Clone, Eq, PartialEq)]
7665
pub struct Code(u64);

0 commit comments

Comments
 (0)