mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-10 01:18:06 +03:00
cleanup: drop unnecessary to_owned call
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a8f60bd128
commit
7672150c4c
@ -439,11 +439,7 @@ impl Archiver {
|
|||||||
let mut stat_results: Option<FileStat> = None;
|
let mut stat_results: Option<FileStat> = None;
|
||||||
|
|
||||||
let get_file_mode = || {
|
let get_file_mode = || {
|
||||||
nix::sys::stat::fstatat(
|
nix::sys::stat::fstatat(dir_fd, file_name, nix::fcntl::AtFlags::AT_SYMLINK_NOFOLLOW)
|
||||||
dir_fd,
|
|
||||||
file_name.to_owned().as_c_str(),
|
|
||||||
nix::fcntl::AtFlags::AT_SYMLINK_NOFOLLOW,
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
match self
|
match self
|
||||||
|
Loading…
Reference in New Issue
Block a user