summaryrefslogtreecommitdiff
path: root/src/ser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ser.rs')
-rw-r--r--src/ser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ser.rs b/src/ser.rs
index 6107694..dcd58c2 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -167,7 +167,7 @@ impl<'a, W: 'a + Write> QsSerializer<'a, W> {
impl Error {
fn no_key() -> Self {
let msg = "tried to serialize a value before serializing key";
- Self::Custom(msg.into())
+ Error::Custom(msg.into())
}
}