Skip to content

Commit

Permalink
Merge #165
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] committed Aug 15, 2017
2 parents 7e4769c + e91a07e commit 1483185
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ license = "Apache-2.0/MIT"
name = "cargo-edit"
readme = "README.md"
repository = "https://github.com/killercup/cargo-edit"
version = "0.2.0"
version = "0.3.0-alpha.1"

[[bin]]
name = "cargo-add"
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl Manifest {
table_path: &[String],
dep: &Dependency,
) -> Result<(), ManifestError> {
let mut table = self.get_table(table_path)?;
let table = self.get_table(table_path)?;

table
.get_mut(&dep.name)
Expand All @@ -337,7 +337,7 @@ impl Manifest {
table_path: &[String],
dep: &Dependency,
) -> Result<(), ManifestError> {
let mut table = self.get_table(table_path)?;
let table = self.get_table(table_path)?;
let new_dep = dep.to_toml().1;

// If (and only if) there is an old entry, merge the new one in.
Expand Down

0 comments on commit 1483185

Please sign in to comment.