Skip to content

Commit d6dd018

Browse files
committed
Remove some redundant pub(crate) modifiers
This fixes all occurrences of `clippy::redundant_pub_crate`.
1 parent 377f1b6 commit d6dd018

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/blogs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ static POSTS_EXT: &str = "md";
77

88
#[derive(Deserialize)]
99
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
10-
pub(crate) struct Manifest {
10+
pub struct Manifest {
1111
/// Title to display in the "top row".
1212
pub(crate) title: String,
1313

@@ -32,7 +32,7 @@ pub(crate) struct Manifest {
3232
}
3333

3434
#[derive(Serialize)]
35-
pub(crate) struct Blog {
35+
pub struct Blog {
3636
title: String,
3737
index_title: String,
3838
link_text: String,
@@ -121,7 +121,7 @@ impl Blog {
121121

122122
/// Recursively load blogs in a directory. A blog is a directory with a `blog.yml`
123123
/// file inside it.
124-
pub(crate) fn load(base: &Path) -> eyre::Result<Vec<Blog>> {
124+
pub fn load(base: &Path) -> eyre::Result<Vec<Blog>> {
125125
let mut blogs = Vec::new();
126126
load_recursive(base, base, &mut blogs)?;
127127
Ok(blogs)

src/posts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct YamlHeader {
1515
}
1616

1717
#[derive(Debug, Clone, Serialize)]
18-
pub(crate) struct Post {
18+
pub struct Post {
1919
pub(crate) filename: String,
2020
pub(crate) layout: String,
2121
pub(crate) title: String,

0 commit comments

Comments
 (0)