Corrects double primitive parsing.
@@ -117,7 +117,8 @@ fn parse_single_header(service: &Service,
fn generate_header_primitive_parser(shape: &Shape) -> String {
let statement = match shape.shape_type {
ShapeType::String | ShapeType::Timestamp => "value",
- ShapeType::Integer | ShapeType::Long | ShapeType::Double => "value.parse::<i64>().unwrap()",
+ ShapeType::Double => "value.parse::<f64>().unwrap()",
+ ShapeType::Integer | ShapeType::Long => "value.parse::<i64>().unwrap()",
ShapeType::Float => "value.parse::<f32>().unwrap()",
ShapeType::Boolean => "value.parse::<bool>().unwrap()",
_ => panic!("Unknown primitive shape type"),
