chore: Fix clippy lints
This commit is contained in:
parent
12d9ba4583
commit
3a8c705e95
|
@ -179,7 +179,7 @@ impl<'gc> Font<'gc> {
|
||||||
pub fn split_wrapped_lines(self, text: &str, height: Twips, width: Twips) -> Vec<usize> {
|
pub fn split_wrapped_lines(self, text: &str, height: Twips, width: Twips) -> Vec<usize> {
|
||||||
let mut result = vec![];
|
let mut result = vec![];
|
||||||
let mut current_width = width;
|
let mut current_width = width;
|
||||||
let mut current_word = &text[0..0];
|
let mut current_word = text;
|
||||||
|
|
||||||
for word in text.split(' ') {
|
for word in text.split(' ') {
|
||||||
let measure = self.measure(word, height);
|
let measure = self.measure(word, height);
|
||||||
|
|
|
@ -813,6 +813,7 @@ extern "C" {
|
||||||
|
|
||||||
// Janky resmapling code.
|
// Janky resmapling code.
|
||||||
// TODO: Clean this up.
|
// TODO: Clean this up.
|
||||||
|
#[allow(unused_assignments)]
|
||||||
fn resample(
|
fn resample(
|
||||||
mut input: impl Iterator<Item = [i16; 2]>,
|
mut input: impl Iterator<Item = [i16; 2]>,
|
||||||
input_sample_rate: u16,
|
input_sample_rate: u16,
|
||||||
|
|
Loading…
Reference in New Issue