mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-01 00:48:00 +00:00
Format in rfc style
This commit is contained in:
@@ -20,7 +20,11 @@ impl Ctxt {
|
||||
}
|
||||
|
||||
pub fn error<T: Display>(&self, msg: T) {
|
||||
self.errors.borrow_mut().as_mut().unwrap().push(msg.to_string());
|
||||
self.errors
|
||||
.borrow_mut()
|
||||
.as_mut()
|
||||
.unwrap()
|
||||
.push(msg.to_string());
|
||||
}
|
||||
|
||||
pub fn check(self) -> Result<(), String> {
|
||||
|
||||
Reference in New Issue
Block a user