Skip to content

Commit

Permalink
Make MetadataCommand::exec &self, not &mut self
Browse files Browse the repository at this point in the history
No reason for this to be `&mut`.
  • Loading branch information
sunshowers committed Apr 28, 2020
1 parent 85a9ec4 commit 037298b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -496,7 +496,7 @@ impl MetadataCommand {
}

/// Runs configured `cargo metadata` and returns parsed `Metadata`.
pub fn exec(&mut self) -> Result<Metadata> {
pub fn exec(&self) -> Result<Metadata> {
let mut cmd = self.cargo_command()?;
let output = cmd.output()?;
if !output.status.success() {
Expand Down

0 comments on commit 037298b

Please sign in to comment.