Remove unnecessary borrows (#810)

This commit is contained in:
Micah
2023-10-25 15:59:02 -07:00
committed by GitHub
parent 9f13bca6b8
commit cd14ea7c62
3 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ fn main() -> Result<(), anyhow::Error> {
let our_version = Version::parse(env::var_os("CARGO_PKG_VERSION").unwrap().to_str().unwrap())?;
let plugin_version =
Version::parse(fs::read_to_string(&plugin_root.join("Version.txt"))?.trim())?;
Version::parse(fs::read_to_string(plugin_root.join("Version.txt"))?.trim())?;
assert!(
our_version.major == plugin_version.major,