mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Fix clippy warnings (#3085)
* Run clippy fix * Clippy v2 * Make const item static * Cargo fmt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user