parsers: Fix some issues reported by clippy.
This commit is contained in:
parent
ebf1091cf1
commit
464b5de0d0
10 changed files with 23 additions and 46 deletions
|
|
@ -46,9 +46,9 @@ impl IntoAttributeValue for DateTime {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<Node> for DateTime {
|
||||
fn into(self) -> Node {
|
||||
Node::Text(self.0.to_rfc3339())
|
||||
impl From<DateTime> for Node {
|
||||
fn from(date: DateTime) -> Node {
|
||||
Node::Text(date.0.to_rfc3339())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue