Clean up and suppress Clippy warnings (#1402)

* fix: clear and suppress clippy warnings

* Simplification

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Prikshit Gautam 2023-08-28 05:26:53 +05:30 committed by GitHub
parent e77782aadb
commit fb1922b49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 52 deletions

View file

@ -1,3 +1,5 @@
#![allow(clippy::too_many_arguments)]
use super::curve::{Curve, CurveManipulatorGroup, ValueMapperNode};
use super::{Channel, Color, Node};

View file

@ -17,5 +17,5 @@ pub struct TextGenerator<Text, FontName, Size> {
#[node_fn(TextGenerator)]
fn generate_text<'a: 'input, T>(editor: EditorApi<'a, T>, text: String, font_name: Font, font_size: f64) -> crate::vector::VectorData {
let buzz_face = editor.font_cache.get(&font_name).map(|data| load_face(data));
crate::vector::VectorData::from_subpaths(to_path(&text, buzz_face, font_size as f64, None))
crate::vector::VectorData::from_subpaths(to_path(&text, buzz_face, font_size, None))
}