Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
  • Loading branch information
epilys committed Dec 18, 2023
1 parent dbbaeda commit 300b125
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions archive-http/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn run_app() -> std::result::Result<(), Box<dyn std::error::Error>> {
return Err("Output path is not a directory.".into());
}

std::fs::create_dir_all(&output_path.join("lists"))?;
std::fs::create_dir_all(&output_path.join("list"))?;
std::fs::create_dir_all(output_path.join("lists"))?;
std::fs::create_dir_all(output_path.join("list"))?;
let conf = Configuration::from_file(config_path)
.map_err(|err| format!("Could not load config {config_path}: {err}"))?;

Expand Down Expand Up @@ -67,7 +67,7 @@ fn run_app() -> std::result::Result<(), Box<dyn std::error::Error>> {
.write(true)
.create(true)
.truncate(true)
.open(&output_path.join("index.html"))?;
.open(output_path.join("index.html"))?;
let crumbs = vec![Crumb {
label: "Lists".into(),
url: format!("{root_url_prefix}/").into(),
Expand Down
1 change: 1 addition & 0 deletions core/rustfmt.toml
2 changes: 1 addition & 1 deletion core/src/posts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Connection {
} else {
from_[0].get_email()
};
let datetime: std::borrow::Cow<'_, str> = if !env.date.as_str().is_empty() {
let datetime: std::borrow::Cow<'_, str> = if !env.date.is_empty() {
env.date.as_str().into()
} else {
melib::datetime::timestamp_to_string(
Expand Down

0 comments on commit 300b125

Please sign in to comment.