We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 965520b commit 2470f9dCopy full SHA for 2470f9d
1 file changed
src/lib.rs
@@ -102,7 +102,7 @@ impl CloudCheck {
102
);
103
match tokio::fs::metadata(cache_path).await {
104
Ok(metadata) => {
105
- if let Some(modified) = metadata.modified().ok() {
+ if let Ok(modified) = metadata.modified() {
106
debug!("Cache file modification time: {:?}", modified);
107
Ok(Some(modified))
108
} else {
0 commit comments