Skip to content

Commit 86065f2

Browse files
committed
Formatted code
1 parent b5e1689 commit 86065f2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

helpers/readme-render/src/main.rs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use std::fs;
21
use std::env;
2+
use std::fs;
33

44
use alexandrie_rendering::config::{SyntectConfig, SyntectState};
55

6-
use serde::{Serialize, Deserialize};
6+
use serde::{Deserialize, Serialize};
77

88
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
99
pub struct Config {
@@ -12,10 +12,15 @@ pub struct Config {
1212
}
1313

1414
fn main() {
15-
let readme_path = env::args().skip(1).next().expect("could not find a command-line argument");
16-
17-
let contents = fs::read("alexandrie.toml").expect("could not open configuration file `alexandrie.toml`");
18-
let config: Config = toml::from_slice(contents.as_slice()).expect("could not parse configuration file");
15+
let readme_path = env::args()
16+
.skip(1)
17+
.next()
18+
.expect("could not find a command-line argument");
19+
20+
let contents =
21+
fs::read("alexandrie.toml").expect("could not open configuration file `alexandrie.toml`");
22+
let config: Config =
23+
toml::from_slice(contents.as_slice()).expect("could not parse configuration file");
1924

2025
let state = SyntectState::from(config.syntect);
2126

0 commit comments

Comments
 (0)