Skip to content

Commit bace209

Browse files
committed
chore: updates deps
1 parent 9406d47 commit bace209

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ description = "A conventional changelog for the rest of us"
1010
exclude = ["docs/*"]
1111

1212
[dependencies]
13-
regex = "*"
14-
toml = "*"
15-
time = "*"
13+
regex = "0.1.41"
14+
toml = "0.1.23"
15+
time = "0.1.33"
1616

1717
[dependencies.regex_macros]
1818
version = "*"

src/fmt/md_writer.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use sectionmap::SectionMap;
1717
/// # use std::fs::File;
1818
/// # use clog::{SectionMap, Clog};
1919
/// # use clog::fmt::MarkdownWriter;
20-
/// let clog = Clog::new().unwrap_or_else(|e| {
20+
/// let clog = Clog::new().unwrap_or_else(|e| {
2121
/// e.exit();
2222
/// });
2323
///
@@ -30,9 +30,9 @@ use sectionmap::SectionMap;
3030
///
3131
/// // Create the MarkdownWriter
3232
/// let mut writer = MarkdownWriter::new(&mut file);
33-
///
33+
///
3434
/// // Use the MarkdownWriter to write the changelog
35-
/// clog.write_changelog_with(&mut writer).unwrap_or_else(|e| {
35+
/// clog.write_changelog_with(&mut writer).unwrap_or_else(|e| {
3636
/// e.exit();
3737
/// });
3838
/// ```
@@ -48,7 +48,7 @@ impl<'a> MarkdownWriter<'a> {
4848
/// # use std::io::{stdout, BufWriter};
4949
/// # use clog::Clog;
5050
/// # use clog::fmt::MarkdownWriter;
51-
/// let clog = Clog::new().unwrap_or_else(|e| {
51+
/// let clog = Clog::new().unwrap_or_else(|e| {
5252
/// e.exit();
5353
/// });
5454
///
@@ -93,7 +93,7 @@ impl<'a> MarkdownWriter<'a> {
9393
}
9494
}
9595

96-
/// Writes a particular section of a changelog
96+
/// Writes a particular section of a changelog
9797
fn write_section(&mut self,
9898
options: &Clog,
9999
title: &str,
@@ -138,10 +138,8 @@ impl<'a> MarkdownWriter<'a> {
138138
.map(|s| format!("[#{}]({})",
139139
&*s,
140140
options.link_style.issue_link(&*s, &options.repo)))
141-
// FIXME: Connect should be
142-
// used on the Iterator
143141
.collect::<Vec<String>>()
144-
.connect(", ");
142+
.join(", ");
145143

146144
if let Err(..) = write!(self.0 , ", closes {}", closes_string) {
147145
return Err(Error::WriteErr);

0 commit comments

Comments
 (0)