Skip to content

Commit c751be3

Browse files
authored
Update timeshift trait (#10)
Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 2cf7c43 commit c751be3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/processing/time.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ pub enum TimeOffsetError {
1717
/// be converted to another [TimeScale]
1818
pub trait Timeshift {
1919
/// [TimeScale] transposition without mutable access
20-
fn time_shift(&self, time_offsets: &[TimeOffset]);
20+
fn time_shift(&self, time_offsets: &[TimeOffset]) -> Self
21+
where
22+
Self: Sized;
2123

2224
/// [TimeScale] transposition with mutable access
2325
fn time_shift_mut(&self, time_offsets: &[TimeOffset]);

0 commit comments

Comments
 (0)