Skip to content

Commit 791910c

Browse files
committed
Fix compiler warning about dyn Trait
1 parent d6f6848 commit 791910c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

alass-cli/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ macro_rules! define_error {
3333
self.inner.name()
3434
}
3535

36-
fn cause(&self) -> Option<&Fail> {
36+
fn cause(&self) -> Option<&dyn Fail> {
3737
self.inner.cause()
3838
}
3939

alass-core/src/alass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl Aligner {
301301

302302
pub fn align_with_splits(
303303
&self,
304-
mut progress_handler_opt: Option<Box<ProgressHandler>>,
304+
mut progress_handler_opt: Option<Box<dyn ProgressHandler>>,
305305
nopsplit_bonus_normalized: f64,
306306
speed_optimization_opt: Option<f64>,
307307
) -> Vec<TimeDelta> {

alass-core/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use std::vec::from_elem;
5656
pub fn align_nosplit(
5757
list: Vec<TimeSpan>,
5858
reference: Vec<TimeSpan>,
59-
mut progress_handler_opt: Option<Box<ProgressHandler>>,
59+
mut progress_handler_opt: Option<Box<dyn ProgressHandler>>,
6060
statistics_opt: Option<Statistics>,
6161
) -> TimeDelta {
6262
if let Some(p) = progress_handler_opt.as_mut() {
@@ -103,7 +103,7 @@ pub fn align(
103103
reference: Vec<TimeSpan>,
104104
split_penalty_normalized: f64,
105105
speed_optimization: Option<f64>,
106-
progress_handler_opt: Option<Box<ProgressHandler>>,
106+
progress_handler_opt: Option<Box<dyn ProgressHandler>>,
107107
statistics_opt: Option<Statistics>,
108108
) -> Vec<TimeDelta> {
109109
let (list_nonoverlapping, list_indices) = prepare_time_spans(list.clone());

0 commit comments

Comments
 (0)