+5 -4 +/-3 browse
1 | diff --git a/archive-http/src/main.rs b/archive-http/src/main.rs |
2 | index b486d83..e6ae3cc 100644 |
3 | --- a/archive-http/src/main.rs |
4 | +++ b/archive-http/src/main.rs |
5 | @@ -38,8 +38,8 @@ fn run_app() -> std::result::Result<(), Box<dyn std::error::Error>> { |
6 | return Err("Output path is not a directory.".into()); |
7 | } |
8 | |
9 | - std::fs::create_dir_all(&output_path.join("lists"))?; |
10 | - std::fs::create_dir_all(&output_path.join("list"))?; |
11 | + std::fs::create_dir_all(output_path.join("lists"))?; |
12 | + std::fs::create_dir_all(output_path.join("list"))?; |
13 | let conf = Configuration::from_file(config_path) |
14 | .map_err(|err| format!("Could not load config {config_path}: {err}"))?; |
15 | |
16 | @@ -67,7 +67,7 @@ fn run_app() -> std::result::Result<(), Box<dyn std::error::Error>> { |
17 | .write(true) |
18 | .create(true) |
19 | .truncate(true) |
20 | - .open(&output_path.join("index.html"))?; |
21 | + .open(output_path.join("index.html"))?; |
22 | let crumbs = vec![Crumb { |
23 | label: "Lists".into(), |
24 | url: format!("{root_url_prefix}/").into(), |
25 | diff --git a/core/rustfmt.toml b/core/rustfmt.toml |
26 | new file mode 120000 |
27 | index 0000000..39f97b0 |
28 | --- /dev/null |
29 | +++ b/core/rustfmt.toml |
30 | @@ -0,0 +1 @@ |
31 | + ../rustfmt.toml |
32 | \ No newline at end of file |
33 | diff --git a/core/src/posts.rs b/core/src/posts.rs |
34 | index b3bef9a..ffc0228 100644 |
35 | --- a/core/src/posts.rs |
36 | +++ b/core/src/posts.rs |
37 | @@ -43,7 +43,7 @@ impl Connection { |
38 | } else { |
39 | from_[0].get_email() |
40 | }; |
41 | - let datetime: std::borrow::Cow<'_, str> = if !env.date.as_str().is_empty() { |
42 | + let datetime: std::borrow::Cow<'_, str> = if !env.date.is_empty() { |
43 | env.date.as_str().into() |
44 | } else { |
45 | melib::datetime::timestamp_to_string( |