Skip to content

Commit d3f300c

Browse files
committed
i2c: AddressMode: add bound Copy
1 parent dd0bbba commit d3f300c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded-hal/src/i2c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<T: ErrorType + ?Sized> ErrorType for &mut T {
276276
/// Address mode (7-bit / 10-bit).
277277
///
278278
/// Note: This trait is sealed and should not be implemented outside of this crate.
279-
pub trait AddressMode: private::Sealed + 'static {}
279+
pub trait AddressMode: Copy + 'static + private::Sealed {}
280280

281281
/// 7-bit address mode type.
282282
///

0 commit comments

Comments
 (0)