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