File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ description = "Code generator for field and eliptic curve operations on the GPUs
77homepage = " https://github.com/filecoin-project/ff-cl-gen"
88repository = " https://github.com/filecoin-project/ff-cl-gen"
99license = " MIT/Apache-2.0"
10- rust-version = " 1.70 .0"
10+ rust-version = " 1.83 .0"
1111
1212[dependencies ]
1313bitvec = " 1.0.1"
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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) ]
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change 1- 1.70 .0
1+ 1.83 .0
You can’t perform that action at this time.
0 commit comments