add debug_assert is_sorted for inline content types
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
011d44b749
commit
44a7ac0703
1 changed files with 4 additions and 3 deletions
|
@ -45,9 +45,10 @@ pub fn content_disposition_type(content_type: Option<&str>) -> ContentDispositio
|
||||||
return ContentDispositionType::Attachment;
|
return ContentDispositionType::Attachment;
|
||||||
};
|
};
|
||||||
|
|
||||||
// is_sorted is unstable
|
debug_assert!(
|
||||||
/* debug_assert!(ALLOWED_INLINE_CONTENT_TYPES.is_sorted(),
|
ALLOWED_INLINE_CONTENT_TYPES.is_sorted(),
|
||||||
* "ALLOWED_INLINE_CONTENT_TYPES is not sorted"); */
|
"ALLOWED_INLINE_CONTENT_TYPES is not sorted"
|
||||||
|
);
|
||||||
|
|
||||||
let content_type: Cow<'_, str> = content_type
|
let content_type: Cow<'_, str> = content_type
|
||||||
.split(';')
|
.split(';')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue