Skip to content

Commit

Permalink
Implement PartialEq for ProtocolError
Browse files Browse the repository at this point in the history
Summary:
Needed for unit testing expected errors in an upcoming diff:

https://www.internalfb.com/code/fbsource/[3ebe96df25f7dfc9df57b4d26e6357842b993db4]/fbcode/thrift/lib/rust/src/tests/binary.rs?lines=526-530

Reviewed By: zertosh

Differential Revision: D68986438

fbshipit-source-id: c7b540fe9672023001348336217dc0b65e270cbb
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Feb 1, 2025
1 parent 22f10a3 commit 5b7b835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third-party/thrift/src/thrift/lib/rust/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use thiserror::Error;
use crate::ttype::TType;
use crate::ApplicationException;

#[derive(Debug, Error)]
#[derive(Debug, Error, PartialEq)]
#[allow(dead_code)]
pub enum ProtocolError {
#[error("end of file reached")]
Expand Down

0 comments on commit 5b7b835

Please sign in to comment.