Skip to content

Commit

Permalink
fix(git): get_mut_ref() was deprecated, use as_mut().unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
Benny Klotz committed Oct 23, 2014
1 parent 315ad76 commit f073d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/git.rs
Expand Up @@ -18,7 +18,7 @@ pub fn get_latest_tag () -> String {
.arg("--max-count=1")
.spawn()
.ok().expect("failed to invoke ref-list")
.stdout.get_mut_ref().read_to_string()
.stdout.as_mut().unwrap().read_to_string()
.ok().expect("failed to get latest git log")
.as_slice().trim_chars('\n')
.to_string()
Expand All @@ -30,7 +30,7 @@ pub fn get_last_commit () -> String {
.arg("HEAD")
.spawn()
.ok().expect("failed to invoke rev-parse")
.stdout.get_mut_ref().read_to_string()
.stdout.as_mut().unwrap().read_to_string()
.ok().expect("failed to get last commit")
}

Expand All @@ -49,7 +49,7 @@ pub fn get_log_entries (config:LogReaderConfig) -> Vec<LogEntry>{
.arg(range)
.spawn()
.ok().expect("failed to invoke `git log`")
.stdout.get_mut_ref().read_to_string()
.stdout.as_mut().unwrap().read_to_string()
.ok().expect("failed to read git log")
.as_slice()
.split_str("\n==END==\n")
Expand Down

0 comments on commit f073d69

Please sign in to comment.