diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-11-05 09:16:31 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-11-05 09:16:31 +0200 |
commit | ca15df3e5d3b7a0e8837b188f6327bb46b7a5536 (patch) | |
tree | 24e69538e4d7762f2261bbd3bfe8e5ae90bece01 | |
parent | aa392fe14538fd51b6a39b91ddf3a7357e7b0994 (diff) | |
download | vmadm-ca15df3e5d3b7a0e8837b188f6327bb46b7a5536.tar.gz |
fix: drop unnecessary borrow
Sponsored-by: author
-rw-r--r-- | src/cloudinit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cloudinit.rs b/src/cloudinit.rs index 9d14538..ad32f2a 100644 --- a/src/cloudinit.rs +++ b/src/cloudinit.rs @@ -198,7 +198,7 @@ struct Userdata { impl Userdata { fn from(spec: &Specification) -> Result<Self, CloudInitError> { let user_ca_pubkey = if let Some(filename) = &spec.user_ca_pubkey { - let data = std::fs::read(&filename) + let data = std::fs::read(filename) .map_err(|err| CloudInitError::ReadError(filename.to_path_buf(), err))?; Some(String::from_utf8(data)?) } else { |