parent
a316428686
commit
0f17e82154
28 changed files with 33 additions and 45 deletions
|
@ -64,7 +64,6 @@ pub enum DapStoreEvent {
|
|||
RemoteHasInitialized,
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum DapStoreMode {
|
||||
Local(LocalDapStore),
|
||||
Ssh(SshDapStore),
|
||||
|
|
|
@ -3415,7 +3415,6 @@ pub struct RemoteLspStore {
|
|||
upstream_project_id: u64,
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub(crate) enum LspStoreMode {
|
||||
Local(LocalLspStore), // ssh host and collab host
|
||||
Remote(RemoteLspStore), // collab guest
|
||||
|
@ -8806,9 +8805,10 @@ impl LspStore {
|
|||
})
|
||||
});
|
||||
|
||||
let is_unnecessary = diagnostic.tags.as_ref().map_or(false, |tags| {
|
||||
tags.iter().any(|tag| *tag == DiagnosticTag::UNNECESSARY)
|
||||
});
|
||||
let is_unnecessary = diagnostic
|
||||
.tags
|
||||
.as_ref()
|
||||
.map_or(false, |tags| tags.contains(&DiagnosticTag::UNNECESSARY));
|
||||
|
||||
if is_supporting {
|
||||
supporting_diagnostics.insert(
|
||||
|
|
|
@ -98,7 +98,7 @@ impl<Label: Ord + Clone> RootPathTrie<Label> {
|
|||
};
|
||||
}
|
||||
if !current.labels.is_empty() {
|
||||
(callback)(¤t.worktree_relative_path, ¤t.labels);
|
||||
let _ = (callback)(¤t.worktree_relative_path, ¤t.labels);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3653,7 +3653,7 @@ impl Project {
|
|||
let mut buffer_count = 0;
|
||||
let mut limit_reached = false;
|
||||
let query = Arc::new(query);
|
||||
let mut chunks = matching_buffers_rx.ready_chunks(64);
|
||||
let chunks = matching_buffers_rx.ready_chunks(64);
|
||||
|
||||
// Now that we know what paths match the query, we will load at most
|
||||
// 64 buffers at a time to avoid overwhelming the main thread. For each
|
||||
|
@ -4392,7 +4392,7 @@ impl Project {
|
|||
envelope: TypedEnvelope<proto::LanguageServerPromptRequest>,
|
||||
mut cx: AsyncApp,
|
||||
) -> Result<proto::LanguageServerPromptResponse> {
|
||||
let (tx, mut rx) = smol::channel::bounded(1);
|
||||
let (tx, rx) = smol::channel::bounded(1);
|
||||
let actions: Vec<_> = envelope
|
||||
.payload
|
||||
.actions
|
||||
|
|
|
@ -21,7 +21,7 @@ use crate::{
|
|||
worktree_store::WorktreeStore,
|
||||
};
|
||||
|
||||
#[allow(clippy::large_enum_variant)] // platform-dependent warning
|
||||
// platform-dependent warning
|
||||
pub enum TaskStore {
|
||||
Functional(StoreState),
|
||||
Noop,
|
||||
|
|
|
@ -24,7 +24,7 @@ pub struct Terminals {
|
|||
}
|
||||
|
||||
/// Terminals are opened either for the users shell, or to run a task.
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum TerminalKind {
|
||||
/// Run a shell at the given path (or $HOME if None)
|
||||
|
|
|
@ -876,7 +876,7 @@ impl WorktreeStore {
|
|||
|
||||
async fn filter_paths(
|
||||
fs: &Arc<dyn Fs>,
|
||||
mut input: Receiver<MatchingEntry>,
|
||||
input: Receiver<MatchingEntry>,
|
||||
query: &SearchQuery,
|
||||
) -> Result<()> {
|
||||
let mut input = pin!(input);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue