fmt
This commit is contained in:
+4
-4
@@ -219,7 +219,7 @@ struct App {
|
||||
thread_work_creation: mpmc::Sender<WorkItem>,
|
||||
thread_work_completion: mpsc::Receiver<WorkComplete>,
|
||||
rcx: Arc<Mutex<Option<RenderContext>>>,
|
||||
watcher: RecommendedWatcher,
|
||||
_watcher: RecommendedWatcher,
|
||||
glsl_changed: Arc<AtomicBool>,
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ impl App {
|
||||
|
||||
let glsl_changed = Arc::new(AtomicBool::new(false));
|
||||
let watcher_glsl_changed = glsl_changed.clone();
|
||||
let mut watcher = notify::recommended_watcher(
|
||||
let mut _watcher = notify::recommended_watcher(
|
||||
move |res: Result<notify::Event, notify::Error>| match res {
|
||||
Ok(event) => {
|
||||
//info!("event: {:?}", event);
|
||||
@@ -551,7 +551,7 @@ impl App {
|
||||
.map(|ext| ext == "glsl")
|
||||
.unwrap_or(false)
|
||||
{
|
||||
watcher
|
||||
_watcher
|
||||
.watch(&path.path(), notify::RecursiveMode::NonRecursive)
|
||||
.unwrap();
|
||||
}
|
||||
@@ -585,7 +585,7 @@ impl App {
|
||||
thread_work_creation: thread_work_creation_sender,
|
||||
thread_work_completion: thread_work_completion_receiver,
|
||||
rcx: Arc::new(Mutex::new(None)),
|
||||
watcher,
|
||||
_watcher,
|
||||
glsl_changed,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user