summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-09-04 12:33:44 +0200
committerMinijackson <minijackson@riseup.net>2018-09-04 12:33:44 +0200
commit515870c9e8ff833e50f5253ec6e6d43de97519ed (patch)
tree996a665bebfe847fe8c2ebdb371b3f15f3ce332f /src/utils.rs
parenta903881e79f30f73d0008f88c4b245defbe5b5c1 (diff)
downloadset_eq-515870c9e8ff833e50f5253ec6e6d43de97519ed.tar.gz
set_eq-515870c9e8ff833e50f5253ec6e6d43de97519ed.zip
Rust stable compatibility + use amplitude decibel conversion
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 6d7ae58..66ccae4 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -46,7 +46,7 @@ pub fn send_filter(conn_sink: &ConnPath<&Connection>, filter: Filter) -> Result<
46 Ok(()) 46 Ok(())
47} 47}
48 48
49pub fn read_filter(file: &mut impl io::Read) -> Result<Filter, Error> { 49pub fn read_filter<T>(file: &mut T) -> Result<Filter, Error> where T: io::Read {
50 let mut buffer = String::new(); 50 let mut buffer = String::new();
51 51
52 info!("Reading filter in GraphicEQ format from the command line"); 52 info!("Reading filter in GraphicEQ format from the command line");