We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23eeb2 commit 8d09eefCopy full SHA for 8d09eef
src/hive/inner/builder.rs
@@ -180,7 +180,7 @@ pub trait Builder: BuilderConfig + Sized {
180
/// ```
181
#[cfg(feature = "affinity")]
182
fn core_affinity<C: Into<crate::hive::cores::Cores>>(mut self, affinity: C) -> Self {
183
- let _ = self.config(Token).affinity.set(Some(affinity.into()));
+ let _ = self.config_ref(Token).affinity.set(Some(affinity.into()));
184
self
185
}
186
@@ -190,7 +190,7 @@ pub trait Builder: BuilderConfig + Sized {
190
191
fn with_default_core_affinity(mut self) -> Self {
192
let _ = self
193
- .config(Token)
+ .config_ref(Token)
194
.affinity
195
.set(Some(crate::hive::cores::Cores::all()));
196
0 commit comments