diff options
| author | Fuwn <[email protected]> | 2025-05-27 16:16:35 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-27 16:16:35 +0000 |
| commit | 884aa53553e4a811dc269d60fd6fc59e837390d3 (patch) | |
| tree | 53718aa956dd7623465a9dd2fa142d024d4f9726 /tests | |
| parent | ci(ga): bump rustc (diff) | |
| download | germ-884aa53553e4a811dc269d60fd6fc59e837390d3.tar.xz germ-884aa53553e4a811dc269d60fd6fc59e837390d3.zip | |
refactor: Use latest best practices and formatting
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ast.rs | 4 | ||||
| -rw-r--r-- | tests/convert.rs | 2 |
2 files changed, 3 insertions, 3 deletions
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, }; |