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:
Rasmus Kaj 2018-06-30 22:38:15 +02:00 committed by Sean McArthur
parent ba9f1206d3
commit e02b2fe0d4

View File

@ -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;