From 73d8609565b808ac73df5ac34e6d4f7f23c25ad6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 11 Oct 2022 15:45:50 +0200 Subject: Refactor to use a bunch of `into` --- src/mdast.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mdast.rs') diff --git a/src/mdast.rs b/src/mdast.rs index 4485167..5e3fca6 100644 --- a/src/mdast.rs +++ b/src/mdast.rs @@ -250,7 +250,7 @@ impl ToString for Node { | Node::Image(_) | Node::ImageReference(_) | Node::ThematicBreak(_) - | Node::Definition(_) => "".to_string(), + | Node::Definition(_) => "".into(), } } } @@ -1152,12 +1152,12 @@ pub struct MdxJsxAttribute { mod tests { use super::*; use crate::unist::{Point, Position}; - use alloc::{string::ToString, vec}; + use alloc::vec; #[test] fn test() { let text = Text { - value: "a".to_string(), + value: "a".into(), position: Some(Position { start: Point { line: 1, -- cgit