From df5c8fa4b04db978397529c248b8743fbbf7743e Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 25 Jul 2017 22:58:18 +0200 Subject: [PATCH] Remove unneeded variable from example Apparently doctests swallow *all* of their output, including compiler warnings, by default. --- src/lua.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lua.rs b/src/lua.rs index f244f37..32d1504 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -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 :(