runk: Fix needless_borrow warning

As we bumped the rust toolchain to 1.66.0, some new warnings have been
raised due to needless_borrow.

Let's fix them all here.

For more info about the warnings, please, take a look at:
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-01-02 17:10:25 +01:00
parent 2c24fcf34c
commit 079462d2eb

View File

@ -105,7 +105,7 @@ fn setup_logger(
.read(true)
.create(true)
.truncate(true)
.open(&file)?;
.open(file)?;
// TODO: Support 'text' log format.
let (logger_local, logger_async_guard_local) =