diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-16 12:04:31 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-16 12:06:28 +0200 |
commit | 457e2d981fd311a041c76bdf076398cfe498457d (patch) | |
tree | 4f6f4eaae2e965db2da5b6dc6e9be772821d37b4 /src/repository/repository.rs | |
parent | fbb62096cfe769a51ac072976782e35236181061 (diff) |
Fix clippy: Remove needless borrow
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/repository/repository.rs')
-rw-r--r-- | src/repository/repository.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository/repository.rs b/src/repository/repository.rs index d5f90f3..9e1dc5c 100644 --- a/src/repository/repository.rs +++ b/src/repository/repository.rs @@ -87,7 +87,7 @@ impl Repository { let mut config = config?; let patches_before_merge = get_patches(&config)?; - config.merge(config::File::from_str(&content, config::FileFormat::Toml)) + config.merge(config::File::from_str(content, config::FileFormat::Toml)) .with_context(|| anyhow!("Loading contents of {}", path.display()))?; // get the patches that are in the `config` object after the merge |