Another batch of lint fixes (#36521)

- **Enable a bunch of extra lints**
- **First batch of fixes**
- **More fixes**

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-08-19 20:33:44 +00:00
committed by GitHub
parent 69b1c6d6f5
commit 6825715503
147 changed files with 787 additions and 1041 deletions
+1 -2
View File
@@ -470,9 +470,8 @@ impl DapStore {
session_id: impl Borrow<SessionId>,
) -> Option<Entity<session::Session>> {
let session_id = session_id.borrow();
let client = self.sessions.get(session_id).cloned();
client
self.sessions.get(session_id).cloned()
}
pub fn sessions(&self) -> impl Iterator<Item = &Entity<Session>> {
self.sessions.values()
+3 -3
View File
@@ -174,7 +174,7 @@ impl DapLocator for GoLocator {
request: "launch".to_string(),
mode: "test".to_string(),
program,
args: args,
args,
build_flags,
cwd: build_config.cwd.clone(),
env: build_config.env.clone(),
@@ -185,7 +185,7 @@ impl DapLocator for GoLocator {
label: resolved_label.to_string().into(),
adapter: adapter.0.clone(),
build: None,
config: config,
config,
tcp_connection: None,
})
}
@@ -220,7 +220,7 @@ impl DapLocator for GoLocator {
request: "launch".to_string(),
mode: "debug".to_string(),
program,
args: args,
args,
build_flags,
})
.unwrap();
+5 -8
View File
@@ -226,7 +226,7 @@ impl RunningMode {
fn unset_breakpoints_from_paths(&self, paths: &Vec<Arc<Path>>, cx: &mut App) -> Task<()> {
let tasks: Vec<_> = paths
.into_iter()
.iter()
.map(|path| {
self.request(dap_command::SetBreakpoints {
source: client_source(path),
@@ -508,13 +508,12 @@ impl RunningMode {
.ok();
}
let ret = if configuration_done_supported {
if configuration_done_supported {
this.request(ConfigurationDone {})
} else {
Task::ready(Ok(()))
}
.await;
ret
.await
}
});
@@ -839,7 +838,7 @@ impl Session {
})
.detach();
let this = Self {
Self {
mode: SessionState::Booting(None),
id: session_id,
child_session_ids: HashSet::default(),
@@ -868,9 +867,7 @@ impl Session {
task_context,
memory: memory::Memory::new(),
quirks,
};
this
}
})
}