Remove Engine::enable_doc_comments.

This commit is contained in:
Stephen Chung
2021-05-03 13:07:51 +08:00
parent bb5dc7b637
commit aad842fe50
5 changed files with 13 additions and 51 deletions

View File

@@ -30,7 +30,7 @@ fn test_comments() -> Result<(), Box<EvalAltResult>> {
#[cfg(feature = "metadata")]
#[test]
fn test_comments_doc() -> Result<(), Box<EvalAltResult>> {
let mut engine = Engine::new();
let engine = Engine::new();
let ast = engine.compile(
"
@@ -89,17 +89,5 @@ fn test_comments_doc() -> Result<(), Box<EvalAltResult>> {
)
.is_err());
engine.enable_doc_comments(false);
engine.compile(
"
/// Hello world!
let x = 42;
/** Hello world! */
let x = 42;
",
)?;
Ok(())
}