Skip to content

Commit cce3de8

Browse files
committed
Auto merge of #3120 - Turbo87:pub, r=pietroalbini
models: Add missing `pub` declarations Without these declarations it is quite hard to use these model structs outside of their files, and since the structs themselves are `pub` it makes sense for their fields to also be public. r? `@pietroalbini`
2 parents 7e6bd7c + 5a937a3 commit cce3de8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/dependency.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ pub struct Dependency {
3131
#[derive(Debug, QueryableByName)]
3232
pub struct ReverseDependency {
3333
#[diesel(embed)]
34-
dependency: Dependency,
34+
pub dependency: Dependency,
3535
#[sql_type = "::diesel::sql_types::Integer"]
36-
crate_downloads: i32,
36+
pub crate_downloads: i32,
3737
#[sql_type = "::diesel::sql_types::Text"]
3838
#[column_name = "crate_name"]
39-
name: String,
39+
pub name: String,
4040
}
4141

4242
#[derive(Copy, Clone, Serialize, Deserialize, Debug, FromSqlRow)]

0 commit comments

Comments
 (0)