Skip to content

Commit ff70797

Browse files
committed
tests: Pass ownership of testing opts
This makes some future code changes more ergonomic. Signed-off-by: Colin Walters <[email protected]>
1 parent f17e2a2 commit ff70797

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ where
338338
Opt::Install(opts) => crate::install::install(opts).await,
339339
Opt::Status(opts) => super::status::status(opts).await,
340340
#[cfg(feature = "internal-testing-api")]
341-
Opt::InternalTests(ref opts) => crate::privtests::run(opts).await,
341+
Opt::InternalTests(opts) => crate::privtests::run(opts).await,
342342
#[cfg(feature = "docgen")]
343343
Opt::Man(manopts) => crate::docgen::generate_manpages(&manopts.directory),
344344
}

lib/src/privtests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub(crate) fn impl_run_container() -> Result<()> {
114114
Ok(())
115115
}
116116

117-
pub(crate) async fn run(opts: &TestingOpts) -> Result<()> {
117+
pub(crate) async fn run(opts: TestingOpts) -> Result<()> {
118118
match opts {
119119
TestingOpts::RunPrivilegedIntegration {} => {
120120
crate::cli::ensure_self_unshared_mount_namespace().await?;

0 commit comments

Comments
 (0)