Skip to content

Commit adf16d5

Browse files
authored
Merge pull request #53 from cgwalters/testing-noref-opts
tests: Pass ownership of testing opts
2 parents f17e2a2 + ff70797 commit adf16d5

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)