From d677881a74ed5a273f3ba36c2f1f8aaf3cb59ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 7 Jun 2017 15:14:34 +0200 Subject: [PATCH] Correct serde attribute option --- url_serde/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_serde/src/lib.rs b/url_serde/src/lib.rs index ebb22a8d8..3c8d110da 100644 --- a/url_serde/src/lib.rs +++ b/url_serde/src/lib.rs @@ -22,7 +22,7 @@ Use the serde attributes `deserialize_with` and `serialize_with`. ``` #[derive(serde::Serialize, serde::Deserialize)] struct MyStruct { - #[serde(with = "url_serde")] + #[serde(serialize_with = "serialize")] url: Url, } ```