aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/scale/mod.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-05-14 09:34:52 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-05-14 09:34:52 +0200
commit6011e20199143f519881660144a4ca95ba77fd2d (patch)
treea4ca902a724f0601ee116b139b77198503270f5e /nihav-core/src/scale/mod.rs
parent3a1d1cfa508161305c7e2499dab3196ded109faf (diff)
downloadnihav-6011e20199143f519881660144a4ca95ba77fd2d.tar.gz
mark traits as dyn
Diffstat (limited to 'nihav-core/src/scale/mod.rs')
-rw-r--r--nihav-core/src/scale/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/nihav-core/src/scale/mod.rs b/nihav-core/src/scale/mod.rs
index c569b2f..e49fecb 100644
--- a/nihav-core/src/scale/mod.rs
+++ b/nihav-core/src/scale/mod.rs
@@ -38,11 +38,11 @@ pub type ScaleResult<T> = Result<T, ScaleError>;
struct KernelDesc {
name: &'static str,
- create: fn () -> Box<kernel::Kernel>,
+ create: fn () -> Box<dyn kernel::Kernel>,
}
impl KernelDesc {
- fn find(name: &str) -> ScaleResult<Box<kernel::Kernel>> {
+ fn find(name: &str) -> ScaleResult<Box<dyn kernel::Kernel>> {
for kern in KERNELS.iter() {
if kern.name == name {
return Ok((kern.create)());
@@ -65,7 +65,7 @@ struct Stage {
fmt_out: ScaleInfo,
tmp_pic: NABufferType,
next: Option<Box<Stage>>,
- worker: Box<kernel::Kernel>,
+ worker: Box<dyn kernel::Kernel>,
}
pub fn get_scale_fmt_from_pic(pic: &NABufferType) -> ScaleInfo {