mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Remove unneeded variable from example
Apparently doctests swallow *all* of their output, including compiler warnings, by default.
This commit is contained in:
@@ -207,7 +207,6 @@ impl<'lua> String<'lua> {
|
||||
/// # use rlua::{Lua, String};
|
||||
/// # fn main() {
|
||||
/// let lua = Lua::new();
|
||||
/// let globals = lua.globals();
|
||||
///
|
||||
/// let non_utf8: String = lua.eval(r#" "test\xff" "#, None).unwrap();
|
||||
/// assert!(non_utf8.to_str().is_err()); // oh no :(
|
||||
|
||||
Reference in New Issue
Block a user