Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe fix gas disappearing? #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
99 changes: 50 additions & 49 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions crates/auxmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ fn _share_ratio_hook(other_gas: Value, ratio_val: Value, one_way_val: Value) {
/// Args: (list). Takes every gas in the list and makes them all identical, scaled to their respective volumes. The total heat and amount of substance in all of the combined gases is conserved.
#[hook("/proc/equalize_all_gases_in_list")]
fn _equalize_all_hook() {
use std::collections::BTreeSet;
let value_list = args
.get(0)
.ok_or_else(|| runtime!("Wrong number of args for equalize all: 0"))?
Expand All @@ -612,7 +611,7 @@ fn _equalize_all_hook() {
std::column!()
)
})?;
let gas_list: BTreeSet<usize> = (1..=value_list.len())
let gas_list: Vec<usize> = (1..=value_list.len())
.filter_map(|i| {
value_list
.get(i)
Expand Down