From 3a8c705e9518098f45c0dffd835eebf16ac64dcf Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Sat, 30 May 2020 03:47:12 -0700 Subject: [PATCH] chore: Fix clippy lints --- core/src/font.rs | 2 +- web/src/audio.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/font.rs b/core/src/font.rs index d3f6e6740..69e1ff020 100644 --- a/core/src/font.rs +++ b/core/src/font.rs @@ -179,7 +179,7 @@ impl<'gc> Font<'gc> { pub fn split_wrapped_lines(self, text: &str, height: Twips, width: Twips) -> Vec { 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); diff --git a/web/src/audio.rs b/web/src/audio.rs index d4add996a..8e998ed87 100644 --- a/web/src/audio.rs +++ b/web/src/audio.rs @@ -813,6 +813,7 @@ extern "C" { // Janky resmapling code. // TODO: Clean this up. +#[allow(unused_assignments)] fn resample( mut input: impl Iterator, input_sample_rate: u16,