Skip to content

Commit e0cff8b

Browse files
committed
Move model logic for category and keyword under models
1 parent 0aeca62 commit e0cff8b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ use util::{R404, C, R};
6565
pub mod app;
6666
pub mod badge;
6767
pub mod boot;
68-
pub mod category;
6968
pub mod config;
7069
pub mod crate_owner_invitation;
7170
pub mod db;
@@ -75,7 +74,6 @@ pub mod download;
7574
pub mod git;
7675
pub mod github;
7776
pub mod http;
78-
pub mod keyword;
7977
pub mod krate;
8078
pub mod owner;
8179
pub mod render;
File renamed without changes.
File renamed without changes.

src/models/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
pub use badge::{Badge, MaintenanceStatus};
2-
pub use category::{Category, CrateCategory, NewCategory};
2+
pub use self::category::{Category, CrateCategory, NewCategory};
33
pub use crate_owner_invitation::NewCrateOwnerInvitation;
44
pub use dependency::{Dependency, Kind, ReverseDependency};
55
pub use download::VersionDownload;
6-
pub use keyword::{CrateKeyword, Keyword};
6+
pub use self::keyword::{CrateKeyword, Keyword};
77
pub use krate::{Crate, CrateDownload, Follow, NewCrate};
88
pub use owner::{CrateOwner, NewTeam, Owner, OwnerKind, Rights, Team};
99
pub use user::{Email, NewUser, User};
1010
pub use token::ApiToken;
1111
pub use version::{NewVersion, Version};
12+
13+
mod category;
14+
mod keyword;

0 commit comments

Comments
 (0)