Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src-tauri/src/acp/scratch_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ pub fn scratch_root() -> PathBuf {
/// codeg itself changes its mind about where the short root lives. Sweeping
/// only today's answer would strand yesterday's directories exactly the way
/// this module's own docs warn about.
// Windows has no short root, so the list of candidates is one long there.
#[cfg_attr(windows, allow(clippy::single_element_loop))]
fn sweep_roots() -> Vec<PathBuf> {
let mut roots = vec![scratch_root()];
for candidate in [
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/browser/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct ProbeSlot;
impl ProbeSlot {
fn take() -> Option<Self> {
IN_FLIGHT_PROBES
.fetch_update(Ordering::AcqRel, Ordering::Acquire, |held| {
.try_update(Ordering::AcqRel, Ordering::Acquire, |held| {
(held < MAX_IN_FLIGHT_PROBES).then_some(held + 1)
})
.ok()
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/workspace_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ pub async fn stop_workspace_state_stream_core(
// between start and stop bookkeeping) must not underflow and wedge
// the stream in permanent full-scan mode.
if wants_tree_git {
let _ = entry.full_subscribers.fetch_update(
let _ = entry.full_subscribers.try_update(
Ordering::AcqRel,
Ordering::Acquire,
|count| count.checked_sub(1),
Expand Down
Loading