Skip to content

Commit 02aee9c

Browse files
authored
Merge pull request #187 from neithernut/update
Various updates
2 parents 5ced5ca + 106ff6e commit 02aee9c

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ members = [
1919
atty = "0.2"
2020
chrono = "0.4"
2121
error-chain = "0.12"
22-
git2 = "0.7"
22+
git2 = "0.9"
2323
is-match = "0.1"
2424
lazy_static = "1"
2525
log = "0.4"

lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ license = "MPL-2.0"
1313

1414
[dependencies]
1515
log = "0.4"
16-
git2 = "0.7"
16+
git2 = "0.9"
1717
error-chain = "0.12"
1818
regex = "1"
1919
lazy_static = "1"

lib/src/message/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl<I, S> Iterator for Blocks<I, S>
6565

6666
// get us the next block
6767
for line in &mut self.0 {
68-
let trimmed = line.as_ref().trim_right();
68+
let trimmed = line.as_ref().trim_end();
6969

7070
// If we encounter an empty line, we are done. However, we should
7171
// refrain from reporting empty blocks.

lib/src/message/line_processor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'a, I, S> Iterator for StripWhiteSpaceLeftIter<I, S>
7373
type Item = String;
7474

7575
fn next(&mut self) -> Option<Self::Item> {
76-
self.0.next().map(|s| String::from(s.as_ref().trim_left()))
76+
self.0.next().map(|s| String::from(s.as_ref().trim_start()))
7777
}
7878
}
7979

@@ -102,7 +102,7 @@ impl<'a, I, S> Iterator for StripWhiteSpaceRightIter<I, S>
102102
type Item = String;
103103

104104
fn next(&mut self) -> Option<Self::Item> {
105-
self.0.next().map(|s| String::from(s.as_ref().trim_right()))
105+
self.0.next().map(|s| String::from(s.as_ref().trim_end()))
106106
}
107107
}
108108

mkmanpage.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ fn main() {
44
if cfg!(feature = "manpage") {
55
assert!(Command::new("pandoc")
66
.arg("-s")
7-
.arg("-S")
87
.arg("-f").arg("markdown")
98
.arg("-t").arg("man")
109
.arg("git-dit.1.md")

src/display/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a,> TokenExpander for MessageFmtToken<'a> {
4949
.clone()
5050
.into_commit()
5151
.ok()
52-
.and_then(|mut m| m.summary().map(String::from))
52+
.and_then(|m| m.summary().map(String::from))
5353
.unwrap_or_default()],
5454
&MessageFmtToken::Author => tokenvec![message
5555
.author()

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<E> LoggableError for E
7070
let mut current = Some(self as &EError);
7171
while let Some(err) = current {
7272
error!("{}", err);
73-
current = err.cause();
73+
current = err.source();
7474
}
7575
}
7676
}

0 commit comments

Comments
 (0)