diff options
author | Minijackson <minijackson@riseup.net> | 2018-09-04 12:33:44 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-09-04 12:33:44 +0200 |
commit | 515870c9e8ff833e50f5253ec6e6d43de97519ed (patch) | |
tree | 996a665bebfe847fe8c2ebdb371b3f15f3ce332f /src/utils.rs | |
parent | a903881e79f30f73d0008f88c4b245defbe5b5c1 (diff) | |
download | set_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.rs | 2 |
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 | ||
49 | pub fn read_filter(file: &mut impl io::Read) -> Result<Filter, Error> { | 49 | pub 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"); |