Skip to content

Commit 9e55c84

Browse files
committed
Remove Clone and PartialEq impls from error type
These are not widely provided for error types in the ecosystem.
1 parent f01d24f commit 9e55c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_src/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub type Result<T> = std::result::Result<T, Error>;
5353
// information in its error type, for example the line and column at which the
5454
// error occurred, the byte offset into the input, or the current key being
5555
// processed.
56-
#[derive(Clone, Debug, PartialEq)]
56+
#[derive(Debug)]
5757
pub enum Error {
5858
// One or more variants that can be created by data structures through the
5959
// `ser::Error` and `de::Error` traits. For example the Serialize impl for

0 commit comments

Comments
 (0)