1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

Fix some warnings

This commit is contained in:
Konkitoman
2023-07-28 18:28:16 +03:00
parent c56d09a2e5
commit bb0b80fb08
6 changed files with 77 additions and 111 deletions

View File

@@ -100,7 +100,7 @@ impl MyApp {
let threads = Vec::with_capacity(3);
let (on_done_tx, on_done_rc) = mpsc::sync_channel(0);
let mut slf = Self {
let slf = Self {
data: Arc::new(RwLock::new(MyAppData {
threads,
on_done_tx,

View File

@@ -2,12 +2,10 @@ use eframe::egui;
use eframe::egui::Id;
use eframe::NativeOptions;
use std::sync::{Arc, RwLock};
fn main() {
env_logger::init(); // Use `RUST_LOG=debug` to see logs.
eframe::run_simple_native(
let _ = eframe::run_simple_native(
"Viewports Examples",
NativeOptions {
renderer: eframe::Renderer::Wgpu,