]> git.nihav.org Git - nihav.git/blobdiff - src/frame.rs
Rust2018: use new addressing scheme
[nihav.git] / src / frame.rs
index 628efb6eb75aff1606a5ea7097a85181b7831148..2bfbe612d404d63cad674df3eb80fec7e2831691 100644 (file)
@@ -3,7 +3,7 @@ use std::collections::HashMap;
 use std::fmt;
 use std::rc::Rc;
 use std::cell::*;
-use formats::*;
+use crate::formats::*;
 
 #[allow(dead_code)]
 #[derive(Clone,Copy,PartialEq)]
@@ -374,7 +374,7 @@ pub fn alloc_audio_buffer(ainfo: NAAudioInfo, nsamples: usize, chmap: NAChannelM
         let mut data: Vec<u8> = Vec::with_capacity(length);
         data.resize(length, 0);
         let buf: NAAudioBuffer<u8> = NAAudioBuffer { data: Rc::new(RefCell::new(data)), info: ainfo, offs: offs, chmap: chmap, len: nsamples };
-        Ok(NABufferType::AudioPacked(buf))        
+        Ok(NABufferType::AudioPacked(buf))
     }
 }