projects
/
nihav-tool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use a bit more modern Rust idioms
[nihav-tool.git]
/
src
/
wavwriter.rs
diff --git
a/src/wavwriter.rs
b/src/wavwriter.rs
index 51700f7b7502badfd852c7216f35fec9cba3b79c..d72b82a11606444e98af59e4d3d71d046445226e 100644
(file)
--- a/
src/wavwriter.rs
+++ b/
src/wavwriter.rs
@@
-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));