aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util')
-rw-r--r--crates/shirabe/src/util/package_sorter.rs2
-rw-r--r--crates/shirabe/src/util/stream_context_factory.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/package_sorter.rs b/crates/shirabe/src/util/package_sorter.rs
index 97b2561..8361dcc 100644
--- a/crates/shirabe/src/util/package_sorter.rs
+++ b/crates/shirabe/src/util/package_sorter.rs
@@ -112,7 +112,7 @@ impl ComputeImportanceHelper<'_> {
weight -= 1 - self.compute(user);
}
}
- self.computing.remove(name);
+ self.computing.shift_remove(name);
self.computed.insert(name.to_string(), weight);
weight
}
diff --git a/crates/shirabe/src/util/stream_context_factory.rs b/crates/shirabe/src/util/stream_context_factory.rs
index 488d807..7d8ab3f 100644
--- a/crates/shirabe/src/util/stream_context_factory.rs
+++ b/crates/shirabe/src/util/stream_context_factory.rs
@@ -45,7 +45,7 @@ impl StreamContextFactory {
let default_options = {
let mut o = default_options;
if let Some(PhpMixed::Array(http)) = o.get_mut("http") {
- http.remove("header");
+ http.shift_remove("header");
}
o
};