fix variables not needing mut warnings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-11-29 15:34:37 +01:00
parent 487922752b
commit 10d77d9712
2 changed files with 5 additions and 5 deletions

View File

@ -633,7 +633,7 @@ impl Shell {
/// This assumes that there are no more symlinks in the path stack.
async fn walk_pxar_archive(
accessor: &Accessor,
mut stack: &mut [PathStackEntry],
stack: &mut [PathStackEntry],
) -> Result<FileEntry, Error> {
if stack[0].pxar.is_none() {
stack[0].pxar = Some(accessor.open_root().await?.lookup_self().await?);

View File

@ -179,7 +179,7 @@ impl BackupEnvironment {
state.ensure_unfinished()?;
let mut data = match state.fixed_writers.get_mut(&wid) {
let data = match state.fixed_writers.get_mut(&wid) {
Some(data) => data,
None => bail!("fixed writer '{}' not registered", wid),
};
@ -233,7 +233,7 @@ impl BackupEnvironment {
state.ensure_unfinished()?;
let mut data = match state.dynamic_writers.get_mut(&wid) {
let data = match state.dynamic_writers.get_mut(&wid) {
Some(data) => data,
None => bail!("dynamic writer '{}' not registered", wid),
};
@ -328,7 +328,7 @@ impl BackupEnvironment {
state.ensure_unfinished()?;
let mut data = match state.dynamic_writers.get_mut(&wid) {
let data = match state.dynamic_writers.get_mut(&wid) {
Some(data) => data,
None => bail!("dynamic writer '{}' not registered", wid),
};
@ -362,7 +362,7 @@ impl BackupEnvironment {
state.ensure_unfinished()?;
let mut data = match state.fixed_writers.get_mut(&wid) {
let data = match state.fixed_writers.get_mut(&wid) {
Some(data) => data,
None => bail!("fixed writer '{}' not registered", wid),
};