Skip to content

Commit a34b398

Browse files
committed
added PartialEq derive on Endianness; cargo fmt
1 parent 4d0eabd commit a34b398

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/src/enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<'py> IntoPyObject<'py> for PyEndianness {
2929
type Output = Bound<'py, PyAny>;
3030
type Error = PyErr;
3131

32-
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self:: Error> {
32+
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> {
3333
// import the python module
3434
let enums_mod = py.import(intern!(py, "async_tiff.enums"))?;
3535
// get our python enum

src/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl AsyncFileReader for ReqwestReader {
228228
}
229229

230230
/// Endianness
231-
#[derive(Debug, Clone, Copy)]
231+
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
232232
pub enum Endianness {
233233
/// Little Endian
234234
LittleEndian,

0 commit comments

Comments
 (0)