Skip to content

Commit 14f961b

Browse files
committed
models/version: Make validate_license_expr() public
1 parent 26677f7 commit 14f961b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ mod rights;
3030
mod team;
3131
pub mod token;
3232
pub mod user;
33-
mod version;
33+
pub mod version;

src/models/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl NewVersion {
209209
}
210210
}
211211

212-
fn validate_license_expr(s: &str) -> AppResult<()> {
212+
pub fn validate_license_expr(s: &str) -> AppResult<()> {
213213
pub const PARSE_MODE: spdx::ParseMode = spdx::ParseMode {
214214
allow_lower_case_operators: false,
215215
allow_slash_as_or_operator: true,

0 commit comments

Comments
 (0)