Skip to content

Commit 74b76b7

Browse files
committed
chore: fix lints and format
1 parent 9d17aa6 commit 74b76b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/export-content/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ struct Metadata {
271271
}
272272

273273
#[derive(Debug)]
274-
pub enum Entry {
274+
enum Entry {
275275
Section { title: String },
276276
File { metadata: Metadata, content: String },
277277
}
@@ -286,7 +286,7 @@ impl Entry {
286286
}
287287

288288
/// Loads release content from files in the specified directory
289-
pub fn load_content(dir: path::PathBuf, kind: &'static str) -> Result<Vec<Entry>> {
289+
fn load_content(dir: path::PathBuf, kind: &'static str) -> Result<Vec<Entry>> {
290290
let re = Regex::new(r"(?s)^---\s*\n(.*?)\n---\n(.*)").unwrap();
291291

292292
let mut entries = vec![];

tools/export-content/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn main() -> Result<()> {
2727
}
2828

2929
fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> Result<()> {
30-
let mut app = App::new()?;
30+
let app = App::new()?;
3131
app.run(terminal)
3232
}
3333

0 commit comments

Comments
 (0)