Fix rust 1.72 warnings about shadowed glob re-exports
This commit is contained in:
parent
404f76739c
commit
f798be6e27
6 changed files with 7 additions and 7 deletions
|
@ -14,7 +14,7 @@ use crate::{
|
||||||
CodeLabel, LanguageScope, Outline,
|
CodeLabel, LanguageScope, Outline,
|
||||||
};
|
};
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use clock::ReplicaId;
|
pub use clock::ReplicaId;
|
||||||
use fs::LineEnding;
|
use fs::LineEnding;
|
||||||
use futures::FutureExt as _;
|
use futures::FutureExt as _;
|
||||||
use gpui::{fonts::HighlightStyle, AppContext, Entity, ModelContext, Task};
|
use gpui::{fonts::HighlightStyle, AppContext, Entity, ModelContext, Task};
|
||||||
|
|
|
@ -18,7 +18,7 @@ use futures::{
|
||||||
FutureExt, TryFutureExt as _,
|
FutureExt, TryFutureExt as _,
|
||||||
};
|
};
|
||||||
use gpui::{executor::Background, AppContext, AsyncAppContext, Task};
|
use gpui::{executor::Background, AppContext, AsyncAppContext, Task};
|
||||||
use highlight_map::HighlightMap;
|
pub use highlight_map::HighlightMap;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use lsp::{CodeActionKind, LanguageServerBinary};
|
use lsp::{CodeActionKind, LanguageServerBinary};
|
||||||
use parking_lot::{Mutex, RwLock};
|
use parking_lot::{Mutex, RwLock};
|
||||||
|
|
|
@ -77,7 +77,7 @@ pub enum Subscription {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
struct Request<'a, T> {
|
pub struct Request<'a, T> {
|
||||||
jsonrpc: &'static str,
|
jsonrpc: &'static str,
|
||||||
id: usize,
|
id: usize,
|
||||||
method: &'a str,
|
method: &'a str,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{search::PathMatcher, worktree::WorktreeHandle, Event, *};
|
use crate::{search::PathMatcher, worktree::WorktreeModelHandle, Event, *};
|
||||||
use fs::{FakeFs, LineEnding, RealFs};
|
use fs::{FakeFs, LineEnding, RealFs};
|
||||||
use futures::{future, StreamExt};
|
use futures::{future, StreamExt};
|
||||||
use gpui::{executor::Deterministic, test::subscribe, AppContext};
|
use gpui::{executor::Deterministic, test::subscribe, AppContext};
|
||||||
|
|
|
@ -4030,7 +4030,7 @@ struct UpdateIgnoreStatusJob {
|
||||||
scan_queue: Sender<ScanJob>,
|
scan_queue: Sender<ScanJob>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait WorktreeHandle {
|
pub trait WorktreeModelHandle {
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
fn flush_fs_events<'a>(
|
fn flush_fs_events<'a>(
|
||||||
&self,
|
&self,
|
||||||
|
@ -4038,7 +4038,7 @@ pub trait WorktreeHandle {
|
||||||
) -> futures::future::LocalBoxFuture<'a, ()>;
|
) -> futures::future::LocalBoxFuture<'a, ()>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WorktreeHandle for ModelHandle<Worktree> {
|
impl WorktreeModelHandle for ModelHandle<Worktree> {
|
||||||
// When the worktree's FS event stream sometimes delivers "redundant" events for FS changes that
|
// When the worktree's FS event stream sometimes delivers "redundant" events for FS changes that
|
||||||
// occurred before the worktree was constructed. These events can cause the worktree to perform
|
// occurred before the worktree was constructed. These events can cause the worktree to perform
|
||||||
// extra directory scans, and emit extra scan-state notifications.
|
// extra directory scans, and emit extra scan-state notifications.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
worktree::{Event, Snapshot, WorktreeHandle},
|
worktree::{Event, Snapshot, WorktreeModelHandle},
|
||||||
Entry, EntryKind, PathChange, Worktree,
|
Entry, EntryKind, PathChange, Worktree,
|
||||||
};
|
};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue