Skip to content

Commit

Permalink
remove serde-test dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jan 17, 2019
1 parent 0bba696 commit 65ea9c3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ proc-macro-hack = { version = "0.5", optional = true }
quoted-string = "0.2.2"
serde1 = { version = "1", optional = true, package = "serde" }

[dev-dependencies]
serde_test = "1"

[features]
macro = ["mime-macro", "proc-macro-hack"]
# "serde1" optional support
Expand Down
19 changes: 0 additions & 19 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,3 @@ macro_rules! serde_impl {

serde_impl!(MediaType);
serde_impl!(MediaRange);

#[cfg(test)]
mod tests {
use serde_test::{Token, assert_tokens};

#[test]
fn media_type_ser_de() {
assert_tokens(&crate::TEXT_PLAIN, &[
Token::Str("text/plain"),
]);
}

#[test]
fn media_range_ser_de() {
assert_tokens(&crate::TEXT_STAR, &[
Token::Str("text/*"),
]);
}
}

0 comments on commit 65ea9c3

Please sign in to comment.