diff --git a/tests/comments.rs b/tests/comments.rs index bc08840c0..a44a9a2c3 100644 --- a/tests/comments.rs +++ b/tests/comments.rs @@ -91,7 +91,7 @@ fn test_comments_doc() { #[cfg(feature = "no_position")] assert_eq!( ast.iter_functions().next().unwrap().comments[0], - "/** Hello world\n ** how are you?\n **/", + "/** Hello world\n ** how are you?\n **/", ); assert!(engine diff --git a/tests/tokens.rs b/tests/tokens.rs index 2a24b3551..8d74ab1a3 100644 --- a/tests/tokens.rs +++ b/tests/tokens.rs @@ -105,7 +105,7 @@ fn test_tokens_unicode_xid_ident() { ", ); #[cfg(feature = "unicode-xid-ident")] - assert_eq!(result?, 42); + assert_eq!(result.unwrap(), 42); #[cfg(not(feature = "unicode-xid-ident"))] assert!(result.is_err());