mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
12 lines
210 B
Rust
12 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);
|
|
}
|
|
}
|