Skip to content

Commit 7f524cb

Browse files
style(rust_fmt): format project
Signed-off-by: Shigure Kurosaki <[email protected]>
1 parent 3d5c4d7 commit 7f524cb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/arg/handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::error::app::Errors;
22
use anyhow::Result;
33
use chrono::{DateTime, Local, NaiveDate};
4-
use glob::{glob, GlobResult};
4+
use glob::{GlobResult, glob};
55
use rss::{Channel, ChannelBuilder, Enclosure, Guid, Image, Item};
66
use scraper::{Html, Selector};
77
use serde::Deserialize;

tests/arg.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ async fn builder() {
1111
assert_ok!(arg::handle::builder(&PathBuf::from("tests/katharsis.config.toml")).await);
1212

1313
assert_eq!(channel.title(), "The React Framework for the Web");
14-
assert_eq!(channel.description(), "Used by some of the world's largest companies, Next.js enables you to create high-quality web applications with the power of React components.");
14+
assert_eq!(
15+
channel.description(),
16+
"Used by some of the world's largest companies, Next.js enables you to create high-quality web applications with the power of React components."
17+
);
1518
assert_eq!(channel.link(), "https://nextjs.org/");
1619

1720
let mut image = Image::default();
@@ -49,7 +52,12 @@ async fn builder() {
4952
beta_item.description,
5053
Some(String::from("Beta article description."))
5154
);
52-
assert_eq!(beta_item.content, Some(String::from("\n <p data-mdx-description=\"true\">Beta article description.</p>\n <h2>Beta Article Subheading</h2>\n <p>Beta article subheading content.</p>\n ")));
55+
assert_eq!(
56+
beta_item.content,
57+
Some(String::from(
58+
"\n <p data-mdx-description=\"true\">Beta article description.</p>\n <h2>Beta Article Subheading</h2>\n <p>Beta article subheading content.</p>\n "
59+
))
60+
);
5361
assert_eq!(
5462
beta_item.pub_date,
5563
Some(String::from("Thu, 24 Oct 2024 00:00:00 GMT"))

0 commit comments

Comments
 (0)