about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/benches/eval.rs2
-rw-r--r--tvix/eval/src/lib.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/tvix/eval/benches/eval.rs b/tvix/eval/benches/eval.rs
index fecf0db1b14a..4e9be8f8f20c 100644
--- a/tvix/eval/benches/eval.rs
+++ b/tvix/eval/benches/eval.rs
@@ -2,7 +2,7 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion};
 use itertools::Itertools;
 
 fn interpret(code: &str) {
-    tvix_eval::Evaluation::new(code, None).evaluate();
+    tvix_eval::Evaluation::default().evaluate(code, None);
 }
 
 fn eval_literals(c: &mut Criterion) {
diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs
index ddc281323454..f852b1a3243d 100644
--- a/tvix/eval/src/lib.rs
+++ b/tvix/eval/src/lib.rs
@@ -154,8 +154,7 @@ impl<'co, 'ro> Default for Evaluation<'co, 'ro> {
 
 impl<'co, 'ro> Evaluation<'co, 'ro> {
     #[cfg(feature = "impure")]
-    /// Initialise an `Evaluation` for the given snippet, with all
-    /// impure features turned on by default.
+    /// Initialise an `Evaluation`, with all impure features turned on by default.
     pub fn new_impure() -> Self {
         let mut eval = Self {
             enable_import: true,