fix clippy
This commit is contained in:
1 parent
8e54a89a74
commit
f3d1600822
2 files changed
+2
-2
No files matched your search
@@ -29,6 +29,6 @@ pub fn server_cached<O: 'static + Serialize + DeserializeOwned>(server_fn: impl
|
||||
}
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
crate::html_storage::deserialize::take_server_data().unwrap_or_else(|| server_fn())
|
||||
crate::html_storage::deserialize::take_server_data().unwrap_or_else(server_fn)
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ impl HTMLDataCursor {
|
||||
}
|
||||
let mut cursor = &self.data[current];
|
||||
self.index.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
|
||||
match postcard::from_bytes(&mut cursor) {
|
||||
match postcard::from_bytes(cursor) {
|
||||
Ok(x) => Some(x),
|
||||
Err(e) => {
|
||||
log::error!("Error deserializing data: {:?}", e);
|
||||
|
||||
Reference in new issue
Block a user