ci/rust: bump linting toolchain to latest stable (1.64)
authorLuca BRUNO <luca.bruno@coreos.com>
Wed, 26 Oct 2022 06:46:09 +0000 (06:46 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Wed, 26 Oct 2022 09:27:50 +0000 (09:27 +0000)
This bumps the Rust toolchain for clippy/rustfmt to 1.64.

.github/workflows/rust.yml
rust-bindings/src/repo_checkout_at_options/repo_checkout_filter.rs
rust-bindings/src/sysroot_deploy_tree_opts.rs
rust-bindings/src/sysroot_write_deployments_opts.rs

index affeb42b5cafb18372118e5bb98c36cc34005696..bca9b691d60d647bf090992a14876fec2ea295ac 100644 (file)
@@ -17,7 +17,7 @@ env:
   # Minimum supported Rust version (MSRV)
   ACTION_MSRV_TOOLCHAIN: 1.58.1
   # Pinned toolchain for linting
-  ACTION_LINTS_TOOLCHAIN: 1.56.0
+  ACTION_LINTS_TOOLCHAIN: 1.64.0
 
 jobs:
   build:
index 17310e42162399254b65f4dec4506f01f46b4036..755efea2d4e7a1b003489125ad6736e0afc984b2 100644 (file)
@@ -18,6 +18,7 @@ use std::process::abort;
 ///
 /// # Return Value
 /// The return value determines whether the current file is checked out or skipped.
+#[allow(clippy::type_complexity)]
 pub struct RepoCheckoutFilter(Box<dyn Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult>);
 
 impl RepoCheckoutFilter {
index 62376f76eba6d214aa71c0704b751fe0c42c9241..a2db5c2e093c94cbbba41b3a7a1b9f90d1e0c265 100644 (file)
@@ -3,6 +3,7 @@ use glib::translate::*;
 use libc::c_char;
 
 /// Options for deploying an ostree commit.
+#[derive(Default)]
 pub struct SysrootDeployTreeOpts<'a> {
     /// Use these kernel arguments.
     pub override_kernel_argv: Option<&'a [&'a str]>,
@@ -10,15 +11,6 @@ pub struct SysrootDeployTreeOpts<'a> {
     pub overlay_initrds: Option<&'a [&'a str]>,
 }
 
-impl<'a> Default for SysrootDeployTreeOpts<'a> {
-    fn default() -> Self {
-        SysrootDeployTreeOpts {
-            override_kernel_argv: None,
-            overlay_initrds: None,
-        }
-    }
-}
-
 type OptionStrSliceStorage<'a> =
     <Option<&'a [&'a str]> as ToGlibPtr<'a, *mut *mut c_char>>::Storage;
 
index 81c436c338115a0b8fdeec079916d31b8250aa65..0c68e764aa2b1d2c44a609b7aec24f4428245797 100644 (file)
@@ -2,19 +2,12 @@ use ffi::OstreeSysrootWriteDeploymentsOpts;
 use glib::translate::*;
 
 /// Options for writing a deployment.
+#[derive(Default)]
 pub struct SysrootWriteDeploymentsOpts {
     /// Perform cleanup after writing the deployment.
     pub do_postclean: bool,
 }
 
-impl Default for SysrootWriteDeploymentsOpts {
-    fn default() -> Self {
-        SysrootWriteDeploymentsOpts {
-            do_postclean: false,
-        }
-    }
-}
-
 impl<'a> ToGlibPtr<'a, *const OstreeSysrootWriteDeploymentsOpts> for SysrootWriteDeploymentsOpts {
     type Storage = Box<OstreeSysrootWriteDeploymentsOpts>;