mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 23:01:01 +00:00
Format with rustfmt 2018-12-10
This commit is contained in:
@@ -116,8 +116,10 @@ impl<'c, T> VecAttr<'c, T> {
|
||||
fn at_most_one(mut self) -> Result<Option<T>, ()> {
|
||||
if self.values.len() > 1 {
|
||||
let dup_token = self.first_dup_tokens;
|
||||
self.cx
|
||||
.error_spanned_by(dup_token, format!("duplicate serde attribute `{}`", self.name));
|
||||
self.cx.error_spanned_by(
|
||||
dup_token,
|
||||
format!("duplicate serde attribute `{}`", self.name),
|
||||
);
|
||||
Err(())
|
||||
} else {
|
||||
Ok(self.values.pop())
|
||||
|
||||
Reference in New Issue
Block a user