Skip to content

Bump rui314/setup-mold from 85c79d00377f0d32cdbae595a46de6f7c2fa6599 to 702b1908b5edf30d71a8d1666b724e0f0c6fa035 #70

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

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 .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
- uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035

- name: Build
run: make build
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
- uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035

- name: Check formatting and clippy
run: make lint
Expand All @@ -49,7 +49,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
- uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035

- name: Run unit tests
run: make test
3 changes: 1 addition & 2 deletions crates/geo_filters/src/config/buckets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ where
fn into_block(self) -> u64 {
assert!(
self.into_usize() < BITS_PER_BLOCK,
"position in block must be less then 64, got {:?}",
self
"position in block must be less then 64, got {self:?}",
);
1u64 << self.into_usize()
}
Expand Down
4 changes: 2 additions & 2 deletions crates/geo_filters/src/config/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ mod tests {
#[test]
fn test_lookup_7() {
let var = lookup_random_hashes_variance::<7>(1 << 16);
assert!(var < 1e-4, "variance {} too large", var);
assert!(var < 1e-4, "variance {var} too large");
}

#[test]
fn test_lookup_13() {
let var = lookup_random_hashes_variance::<13>(1 << 16);
assert!(var < 1e-4, "variance {} too large", var);
assert!(var < 1e-4, "variance {var} too large");
}

fn lookup_random_hashes_variance<const B: usize>(n: u64) -> f64 {
Expand Down
4 changes: 2 additions & 2 deletions crates/geo_filters/src/evaluation/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn run_simulations(
println!("Parameters:");
println!();
println!(" number of configs = {}", configs.len());
println!(" number of samples = {}", samples);
println!(" number of samples = {samples}");
println!(" number of sets = {}", set_sizes.len());
println!();

Expand All @@ -107,7 +107,7 @@ pub fn run_simulations(
let results = configs
.iter()
.map(|(name, f)| {
print!(" {} ... ", name);
print!(" {name} ... ");
std::io::stdout().flush().expect("stdout can be flushed");
let t = Instant::now();
let result = simulate(f, samples, set_sizes);
Expand Down
2 changes: 1 addition & 1 deletion crates/string-offsets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ mod tests {
0 => 0,
1..=3 => 1,
4 => 2,
_ => panic!("invalid utf8 char width: {}", len),
_ => panic!("invalid utf8 char width: {len}"),
}
}

Expand Down