From 884aa53553e4a811dc269d60fd6fc59e837390d3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 27 May 2025 16:16:35 +0000 Subject: refactor: Use latest best practices and formatting --- tests/ast.rs | 4 ++-- tests/convert.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/ast.rs b/tests/ast.rs index 021fd96..37320a7 100644 --- a/tests/ast.rs +++ b/tests/ast.rs @@ -19,8 +19,8 @@ #[cfg(test)] mod test { use germ::{ - ast::{Ast, Node}, EXAMPLE_GEMTEXT, + ast::{Ast, Node}, }; #[test] @@ -51,7 +51,7 @@ mod test { #[test] fn build_single_element() { assert_eq!( - Ast::from_string("=> /test hi").inner().get(0).unwrap(), + Ast::from_string("=> /test hi").inner().first().unwrap(), &Node::Link { to: "/test".to_string(), text: Some("hi".to_string()) }, ); } diff --git a/tests/convert.rs b/tests/convert.rs index afff5bc..84d605e 100644 --- a/tests/convert.rs +++ b/tests/convert.rs @@ -19,7 +19,7 @@ #[cfg(test)] mod test { use germ::{ - convert::{from_string, Target}, + convert::{Target, from_string}, gemini_to_html, gemini_to_md, }; -- cgit v1.2.3