Fix clippy warnings (#3085)

* Run clippy fix

* Clippy v2

* Make const item static

* Cargo fmt
This commit is contained in:
Dennis Kobert
2025-08-23 11:45:47 +02:00
committed by GitHub
parent c6ec3a27ca
commit 7377871106
47 changed files with 218 additions and 258 deletions

View File

@@ -88,10 +88,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
}
let device = application_io.gpu_executor().unwrap().context.device.clone();
let preferences = EditorPreferences {
use_vello: true,
..Default::default()
};
let preferences = EditorPreferences { use_vello: true };
let editor_api = Arc::new(WasmEditorApi {
font_cache: FontCache::default(),
application_io: Some(application_io.into()),
@@ -104,7 +101,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
match app.command {
Command::Compile { print_proto, .. } => {
if print_proto {
println!("{}", proto_graph);
println!("{proto_graph}");
}
}
Command::Run { run_loop, .. } => {
@@ -120,7 +117,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
loop {
let result = (&executor).execute(render_config).await?;
if !run_loop {
println!("{:?}", result);
println!("{result:?}");
break;
}
tokio::time::sleep(std::time::Duration::from_millis(16)).await;