Remove public Dynamic::as_str.

This commit is contained in:
Stephen Chung
2021-03-05 23:00:27 +08:00
parent ca1ce6b6b8
commit a251219730
5 changed files with 22 additions and 18 deletions

View File

@@ -300,7 +300,7 @@ fn test_closures_external() -> Result<(), Box<EvalAltResult>> {
// Closure 'f' captures: the engine, the AST, and the curried function pointer
let f = move |x: INT| fn_ptr.call_dynamic(context, None, [x.into()]);
assert_eq!(f(42)?.as_str(), Ok("hello42"));
assert_eq!(f(42)?.take_string(), Ok("hello42".to_string()));
Ok(())
}