Skip to content

Commit 0e0feda

Browse files
committed
models/krate: Adjust InvalidFeature::Empty error message
1 parent 6ffd5dd commit 0e0feda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ impl CrateVersions for [Crate] {
513513

514514
#[derive(Debug, Eq, PartialEq, thiserror::Error)]
515515
pub enum InvalidFeature {
516-
#[error("feature cannot be an empty")]
516+
#[error("feature cannot be empty")]
517517
Empty,
518518
#[error(
519519
"invalid character `{0}` in feature `{1}`, the first character must be \

src/tests/krate/publish/snapshots/all__krate__publish__features__empty_feature_name.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ expression: response.into_json()
55
{
66
"errors": [
77
{
8-
"detail": "feature cannot be an empty"
8+
"detail": "feature cannot be empty"
99
}
1010
]
1111
}

0 commit comments

Comments
 (0)