mirror of
https://github.com/google/gn-language-server.git
synced 2025-12-23 12:26:43 +00:00
Fix clippy warning
This commit is contained in:
parent
a3ad34f5fb
commit
1dca46a3d8
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ impl AnalyzedFile {
|
|||
request_time: Instant,
|
||||
) -> Pin<Arc<Self>> {
|
||||
let external =
|
||||
!find_nearest_workspace_root(&document.path).is_some_and(|path| path == workspace_root);
|
||||
find_nearest_workspace_root(&document.path).is_none_or(|path| path != workspace_root);
|
||||
let key = CacheKey::new(document.path.clone(), document.version, request_time);
|
||||
Arc::pin(Self {
|
||||
document,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue