mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:42:02 +00:00
15 lines
333 B
Rust
15 lines
333 B
Rust
use globset::{Glob, GlobMatcher};
|
|
|
|
use crate::{CacheKey, CacheKeyHasher};
|
|
|
|
impl CacheKey for GlobMatcher {
|
|
fn cache_key(&self, state: &mut CacheKeyHasher) {
|
|
self.glob().cache_key(state);
|
|
}
|
|
}
|
|
|
|
impl CacheKey for Glob {
|
|
fn cache_key(&self, state: &mut CacheKeyHasher) {
|
|
self.glob().cache_key(state);
|
|
}
|
|
}
|