Skip to content

Commit c5ad55d

Browse files
committed
fix: increase MSRV to 1.83
`generic-array` v1.2.0 has a minumum supported Rust version of 1.83, hence increase to this version and fixing corresponding Clippy warnings.
1 parent 0a3e5f5 commit c5ad55d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ec-gpu-gen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = "Code generator for field and eliptic curve operations on the GPUs
77
homepage = "https://github.com/filecoin-project/ff-cl-gen"
88
repository = "https://github.com/filecoin-project/ff-cl-gen"
99
license = "MIT/Apache-2.0"
10-
rust-version = "1.70.0"
10+
rust-version = "1.83.0"
1111

1212
[dependencies]
1313
bitvec = "1.0.1"

ec-gpu-gen/src/multiexp_cpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl AsRef<FullDensity> for FullDensity {
9999
}
100100
}
101101

102-
impl<'a> QueryDensity for &'a FullDensity {
102+
impl QueryDensity for &FullDensity {
103103
type Iter = iter::Repeat<bool>;
104104

105105
fn iter(self) -> Self::Iter {

ec-gpu-gen/src/source.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl SourceBuilder {
323323
.map(|multiexp| multiexp.source(limb_size))
324324
.collect();
325325
let extra_sources = self.extra_sources.join("\n");
326-
vec![
326+
[
327327
COMMON_SRC.to_string(),
328328
fields,
329329
extension_fields,
@@ -599,7 +599,7 @@ fn generate_cuda(source_builder: &SourceBuilder) -> PathBuf {
599599
// This is a hack when no properly compiled kernel is needed. That's the case when the
600600
// documentation is built on docs.rs and when Clippy is run. We can use arbitrary bytes as
601601
// input then.
602-
if env::var("DOCS_RS").is_ok() || cfg!(feature = "cargo-clippy") {
602+
if env::var("DOCS_RS").is_ok() || cfg!(clippy) {
603603
println!("cargo:rustc-env=_EC_GPU_CUDA_KERNEL_FATBIN=../build.rs");
604604
return PathBuf::from("../build.rs");
605605
}
@@ -630,7 +630,7 @@ fn generate_cuda(source_builder: &SourceBuilder) -> PathBuf {
630630
// rebuilt if any of them change.
631631
let mut hasher = Sha256::new();
632632
hasher.update(kernel_source.as_bytes());
633-
hasher.update(&format!("{:?}", &nvcc));
633+
hasher.update(format!("{:?}", &nvcc));
634634
let kernel_digest = hex::encode(hasher.finalize());
635635

636636
let source_path: PathBuf = [&out_dir, &format!("{}.cu", &kernel_digest)]

ec-gpu-gen/src/threadpool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn log2_floor(num: usize) -> u32 {
133133
}
134134

135135
#[cfg(test)]
136-
pub mod tests {
136+
mod tests {
137137
use super::*;
138138

139139
#[test]

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.70.0
1+
1.83.0

0 commit comments

Comments
 (0)