Correct unnecessary mutable variables

This commit is contained in:
Tad Hardesty 2017-11-30 13:41:28 -08:00
parent 4c8ba6dfef
commit 0d2167ffa5
No known key found for this signature in database
GPG Key ID: AEFCC915C75ACC47

View File

@ -316,7 +316,7 @@ impl Encoder {
/// Enable or disable variable bitrate.
pub fn set_vbr(&mut self, vbr: bool) -> Result<()> {
let mut value: i32 = if vbr { 1 } else { 0 };
let value: i32 = if vbr { 1 } else { 0 };
enc_ctl!(self, OPUS_SET_VBR, value);
Ok(())
}
@ -330,7 +330,7 @@ impl Encoder {
/// Enable or disable constrained VBR.
pub fn set_vbr_constraint(&mut self, vbr: bool) -> Result<()> {
let mut value: i32 = if vbr { 1 } else { 0 };
let value: i32 = if vbr { 1 } else { 0 };
enc_ctl!(self, OPUS_SET_VBR_CONSTRAINT, value);
Ok(())
}