use a bit more modern Rust idioms
[nihav-tool.git] / src / wavwriter.rs
index 51700f7..d72b82a 100644 (file)
@@ -49,7 +49,7 @@ macro_rules! write_data {
 }
 
 impl<'a> WavWriter<'a> {
-    pub fn new(name: &String) -> Self {
+    pub fn new(name: &str) -> Self {
         let file = File::create(name).unwrap();
         let fw   = Box::new(FileWriter::new_write(file));
         let io   = ByteWriter::new(Box::leak(fw));