mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
11 lines
210 B
Rust
11 lines
210 B
Rust
use std::hash::Hash;
|
|
|
|
use filetime::FileTime;
|
|
|
|
use crate::{CacheKey, CacheKeyHasher};
|
|
|
|
impl CacheKey for FileTime {
|
|
fn cache_key(&self, state: &mut CacheKeyHasher) {
|
|
self.hash(&mut *state);
|
|
}
|
|
}
|