Skip to content

Commit 97bf02b

Browse files
committed
Use Rc insted of Arc when clippy::arc_with_non_send_sync
1 parent 0a6f671 commit 97bf02b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/core/compiler/build_config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use cargo_util::ProcessBuilder;
77
use serde::ser;
88
use std::cell::RefCell;
99
use std::path::PathBuf;
10-
use std::sync::Arc;
10+
use std::rc::Rc;
1111
use std::thread::available_parallelism;
1212

1313
/// Configuration information for a rustc build.
@@ -35,7 +35,7 @@ pub struct BuildConfig {
3535
pub primary_unit_rustc: Option<ProcessBuilder>,
3636
/// A thread used by `cargo fix` to receive messages on a socket regarding
3737
/// the success/failure of applying fixes.
38-
pub rustfix_diagnostic_server: Arc<RefCell<Option<RustfixDiagnosticServer>>>,
38+
pub rustfix_diagnostic_server: Rc<RefCell<Option<RustfixDiagnosticServer>>>,
3939
/// The directory to copy final artifacts to. Note that even if `out_dir` is
4040
/// set, a copy of artifacts still could be found a `target/(debug\release)`
4141
/// as usual.
@@ -113,7 +113,7 @@ impl BuildConfig {
113113
build_plan: false,
114114
unit_graph: false,
115115
primary_unit_rustc: None,
116-
rustfix_diagnostic_server: Arc::new(RefCell::new(None)),
116+
rustfix_diagnostic_server: Rc::new(RefCell::new(None)),
117117
export_dir: None,
118118
future_incompat_report: false,
119119
timing_outputs: Vec::new(),

0 commit comments

Comments
 (0)