Fix the current tests

This commit is contained in:
Kerollmops 2023-02-08 14:54:05 +01:00
parent a36b1dbd70
commit 7b4b57ecc8
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 5 additions and 5 deletions

View file

@ -69,6 +69,7 @@ impl TryFrom<String> for IndexUidPattern {
fn try_from(uid: String) -> Result<Self, Self::Error> {
let result = match uid.strip_suffix('*') {
Some("") => Ok(IndexUidPattern(uid)),
Some(prefix) => IndexUid::from_str(prefix).map(|_| IndexUidPattern(uid)),
None => IndexUid::try_from(uid).map(IndexUid::into_inner).map(IndexUidPattern),
};