aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/code_text.rs')
-rw-r--r--tests/code_text.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/code_text.rs b/tests/code_text.rs
index 25882c8..89fa63f 100644
--- a/tests/code_text.rs
+++ b/tests/code_text.rs
@@ -187,15 +187,15 @@ fn code_text() -> Result<(), String> {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
- value: "a ".to_string(),
+ value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::InlineCode(InlineCode {
- value: "alpha".to_string(),
+ value: "alpha".into(),
position: Some(Position::new(1, 3, 2, 1, 10, 9))
}),
Node::Text(Text {
- value: " b.".to_string(),
+ value: " b.".into(),
position: Some(Position::new(1, 10, 9, 1, 13, 12))
})
],