Skip to content

Commit 6976c59

Browse files
committed
refactor(util-schemas): make validate_package_name pub(crate)
1 parent 73d6d12 commit 6976c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cargo-util-schemas/src/restricted_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum NameValidationError {
3434
/// level of sanity. Note that package names have other restrictions
3535
/// elsewhere. `cargo new` has a few restrictions, such as checking for
3636
/// reserved names. crates.io has even more restrictions.
37-
pub fn validate_package_name(name: &str, what: &'static str) -> Result<()> {
37+
pub(crate) fn validate_package_name(name: &str, what: &'static str) -> Result<()> {
3838
if name.is_empty() {
3939
return Err(NameValidationError::Empty(what));
4040
}

0 commit comments

Comments
 (0)