mirror of
https://gitee.com/openharmony/third_party_rust_mime
synced 2024-11-27 06:51:06 +00:00
Add an IMAGE_SVG constant (#86)
Also, to be able to declare the plus position, change the type of pieces in the mimes macro from `tt` to `expr`.
This commit is contained in:
parent
ba9f1206d3
commit
e02b2fe0d4
@ -598,7 +598,7 @@ names! {
|
||||
}
|
||||
|
||||
macro_rules! mimes {
|
||||
($($id:ident, $($piece:tt),*;)*) => (
|
||||
($($id:ident, $($piece:expr),*;)*) => (
|
||||
#[allow(non_camel_case_types)]
|
||||
enum __Atoms {
|
||||
__Dynamic,
|
||||
@ -713,6 +713,7 @@ mimes! {
|
||||
IMAGE_GIF, "image/gif", 5;
|
||||
IMAGE_PNG, "image/png", 5;
|
||||
IMAGE_BMP, "image/bmp", 5;
|
||||
IMAGE_SVG, "image/svg+xml", 5, Some(9);
|
||||
|
||||
APPLICATION_JSON, "application/json", 11;
|
||||
APPLICATION_JAVASCRIPT, "application/javascript", 11;
|
||||
|
Loading…
Reference in New Issue
Block a user