Skip to content

Commit

Permalink
Merge pull request #164 from matthiasbeyer/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
neithernut authored Apr 23, 2018
2 parents e1f734a + a0da0fa commit 065791c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/display/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use super::formatter::{TokenExpander, FormattingToken, LineTokens};
/// Tokens for formatting messages
///
#[derive(Clone)]
#[allow(unused)]
pub enum MessageFmtToken<'a> {
Id(usize),
Subject,
Expand Down
2 changes: 1 addition & 1 deletion src/display/msgtree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl<'r, I> Iterator for TreeGraphElemLineIterator<'r, I>
let mut parent_update = commit.parent(0).as_ref().map(Commit::id).ok();

// generate graph elements for the parents currently tracked
let mut elems : TreeGraphElemLine = self.parents.iter_mut().map(|mut parent| {
let mut elems : TreeGraphElemLine = self.parents.iter_mut().map(|parent| {
match *parent {
Some(id) => if commit.id() == id {
// the current commit is a parent we were awaiting
Expand Down

0 comments on commit 065791c

Please sign in to comment.