pass clippy
This commit is contained in:
1 parent
6c804cded7
commit
fc28050da6
1 file changed
+2
-4
@@ -32,8 +32,7 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(
|
||||
let file_map = file_map.clone();
|
||||
let channels = channels.clone();
|
||||
move || {
|
||||
for connection in local_socket_stream.incoming() {
|
||||
if let Ok(mut connection) = connection {
|
||||
for mut connection in local_socket_stream.incoming().flatten() {
|
||||
// send any templates than have changed before the socket connected
|
||||
let templates: Vec<_> = {
|
||||
file_map
|
||||
@@ -55,7 +54,6 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// watch for changes
|
||||
@@ -102,7 +100,7 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(
|
||||
match file_map
|
||||
.lock()
|
||||
.unwrap()
|
||||
.update_rsx(&path, crate_dir.as_path())
|
||||
.update_rsx(path, crate_dir.as_path())
|
||||
{
|
||||
UpdateResult::UpdatedRsx(msgs) => {
|
||||
for msg in msgs {
|
||||
|
||||
Reference in new issue
Block a user