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/ast.rs | |
| 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/ast.rs')
| -rw-r--r-- | tests/ast.rs | 4 |
1 files changed, 2 insertions, 2 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()) }, ); } |