From 3b6ed9df06284ec72833d568c46c12af3e13ddaa Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Wed, 3 Jul 2024 15:59:04 +0200 Subject: [PATCH] fmt --- crates/wysiwyg/src/composer_model/new_lines.rs | 2 +- crates/wysiwyg/src/tests/test_paragraphs.rs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/wysiwyg/src/composer_model/new_lines.rs b/crates/wysiwyg/src/composer_model/new_lines.rs index 0232c2686..5cdecf5cc 100644 --- a/crates/wysiwyg/src/composer_model/new_lines.rs +++ b/crates/wysiwyg/src/composer_model/new_lines.rs @@ -1,9 +1,9 @@ +use crate::dom::nodes::dom_node::DomNodeKind; use crate::dom::nodes::dom_node::DomNodeKind::{ Generic, Link, List, ListItem, Paragraph, }; use crate::dom::{Dom, DomLocation}; use crate::{ComposerModel, ComposerUpdate, DomNode, UnicodeString}; -use crate::dom::nodes::dom_node::DomNodeKind; impl ComposerModel where diff --git a/crates/wysiwyg/src/tests/test_paragraphs.rs b/crates/wysiwyg/src/tests/test_paragraphs.rs index 4d457e56a..9171914b4 100644 --- a/crates/wysiwyg/src/tests/test_paragraphs.rs +++ b/crates/wysiwyg/src/tests/test_paragraphs.rs @@ -296,16 +296,17 @@ fn enter_after_setting_html_with_blockquote_with_a_single_line() { .set_content_from_html(&utf16("
A
")) .unwrap(); model.enter(); - assert_eq!(tx(&model), "

A

 |

"); + assert_eq!( + tx(&model), + "

A

 |

" + ); } #[test] fn enter_after_setting_html_with_blockquote_containing_formatting() { let mut model = cm("|"); model - .set_content_from_html(&utf16( - "
Atest
", - )) + .set_content_from_html(&utf16("
Atest
")) .unwrap(); assert_eq!(tx(&model), "
Atest|
"); model.enter();