diff --git a/snix/castore/src/fs/mod.rs b/snix/castore/src/fs/mod.rs index b108b0b0d..40a1148e1 100644 --- a/snix/castore/src/fs/mod.rs +++ b/snix/castore/src/fs/mod.rs @@ -255,7 +255,7 @@ where // We don't have it yet, look it up in [self.root_nodes]. match self .tokio_handle - .block_on(async move { self.root_nodes_provider.get_by_basename(name).await }) + .block_on(async { self.root_nodes_provider.get_by_basename(name).await }) { // if there was an error looking up the root node, propagate up an IO error. Err(_e) => Err(io::Error::from_raw_os_error(libc::EIO)),