Skip to content

Commit 47eae0f

Browse files
authored
[codec] Config requires Clone (#813)
1 parent 8485b5d commit 47eae0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codec/src/codec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ use std::ops::RangeBounds;
1111
/// `Clone + Send + 'static`.
1212
///
1313
/// Use the unit type `()` if no configuration is required for a specific [`Read`] implementation.
14-
pub trait Config: Send + 'static {}
14+
pub trait Config: Clone + Send + 'static {}
1515

1616
// Automatically implement `Config` for matching types.
17-
impl<T: Send + 'static> Config for T {}
17+
impl<T: Clone + Send + 'static> Config for T {}
1818

1919
/// A marker trait for a [`Config`] type that is also a [`RangeBounds<usize>`].
2020
///

0 commit comments

Comments
 (0)