chore: Fix clippy lints

This commit is contained in:
Mike Welsh 2020-05-30 03:47:12 -07:00
parent 12d9ba4583
commit 3a8c705e95
2 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,7 @@ impl<'gc> Font<'gc> {
pub fn split_wrapped_lines(self, text: &str, height: Twips, width: Twips) -> Vec<usize> {
let mut result = vec![];
let mut current_width = width;
let mut current_word = &text[0..0];
let mut current_word = text;
for word in text.split(' ') {
let measure = self.measure(word, height);

View File

@ -813,6 +813,7 @@ extern "C" {
// Janky resmapling code.
// TODO: Clean this up.
#[allow(unused_assignments)]
fn resample(
mut input: impl Iterator<Item = [i16; 2]>,
input_sample_rate: u16,