mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 10:31:04 +00:00
Get the benchmark running again
This commit is contained in:
@@ -67,7 +67,7 @@ impl de::Deserialize for HttpField {
|
||||
}
|
||||
|
||||
#[derive(Show, PartialEq, RustcEncodable, RustcDecodable)]
|
||||
//#[derive_serialize]
|
||||
#[derive_serialize]
|
||||
//#[derive_deserialize]
|
||||
struct Http {
|
||||
protocol: HttpProtocol,
|
||||
@@ -299,7 +299,7 @@ impl de::Deserialize for OriginField {
|
||||
}
|
||||
|
||||
#[derive(Show, PartialEq, RustcEncodable, RustcDecodable)]
|
||||
//#[derive_serialize]
|
||||
#[derive_serialize]
|
||||
//#[derive_deserialize]
|
||||
struct Origin {
|
||||
ip: String,
|
||||
@@ -773,7 +773,7 @@ impl de::Deserialize for LogField {
|
||||
}
|
||||
|
||||
#[derive(Show, PartialEq, RustcEncodable, RustcDecodable)]
|
||||
//#[derive_serialize]
|
||||
#[derive_serialize]
|
||||
//#[derive_deserialize]
|
||||
struct Log {
|
||||
timestamp: i64,
|
||||
@@ -887,7 +887,6 @@ impl Log {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
macro_rules! likely(
|
||||
($val:expr) => {
|
||||
{
|
||||
@@ -1477,4 +1476,3 @@ fn bench_deserializer(b: &mut Bencher) {
|
||||
let _log: Log = json::from_str(JSON_STR).unwrap();
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user