Remove "_error" from de::Error::*_error

This commit is contained in:
Erick Tryzelaar
2015-08-06 17:47:44 -07:00
parent 0482b756e8
commit 2aeb51ad51
13 changed files with 100 additions and 100 deletions
+2 -2
View File
@@ -275,7 +275,7 @@ to generate an error for a few common error conditions. Here's how it could be u
fn visit_string<E>(&mut self, _: String) -> Result<i32, E>
where E: Error,
{
Err(serde::de::Error::syntax_error())
Err(serde::de::Error::syntax())
}
...
@@ -366,7 +366,7 @@ impl serde::Deserialize for PointField {
match value {
"x" => Ok(Field::X),
"y" => Ok(Field::Y),
_ => Err(serde::de::Error::syntax_error()),
_ => Err(serde::de::Error::syntax()),
}
}
}