Browse Source

fmt

master
Dylan Baker 6 years ago
parent
commit
dfcf82d5b9
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/main.rs

+ 3
- 3
src/main.rs View File

55
 }
55
 }
56
 
56
 
57
 fn main() {
57
 fn main() {
58
-    let cwd = env::current_dir()
59
-        .expect("Couldn't read current directory");
60
-    let layout = fs::read_to_string(cwd.join("templates").join("layout.html")).expect("Couldn't find layout template");
58
+    let cwd = env::current_dir().expect("Couldn't read current directory");
59
+    let layout = fs::read_to_string(&cwd.join("templates").join("layout.html"))
60
+        .expect("Couldn't find layout template");
61
     let post_paths = read_posts_dir(&cwd.join("posts"));
61
     let post_paths = read_posts_dir(&cwd.join("posts"));
62
     let mut posts: Vec<Post> = vec![];
62
     let mut posts: Vec<Post> = vec![];
63
     for path in post_paths {
63
     for path in post_paths {

Loading…
Cancel
Save