summaryrefslogtreecommitdiff
path: root/src/lua.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-05-27 22:08:42 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-05-27 22:08:42 +0100
commit3d7796de55f0b06e45aa8aa08ec353217125097d (patch)
treea88bd69e685e7ad1d21fb32d7ed434296ff3081d /src/lua.rs
parent4306e6e97818919f829266d336fbdc05271286c2 (diff)
downloadmlua-3d7796de55f0b06e45aa8aa08ec353217125097d.zip
clippy
Diffstat (limited to 'src/lua.rs')
-rw-r--r--src/lua.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua.rs b/src/lua.rs
index f0d1632..bc907f5 100644
--- a/src/lua.rs
+++ b/src/lua.rs
@@ -147,7 +147,7 @@ pub(crate) struct ExtraData {
pub enum GCMode {
Incremental,
/// Requires `feature = "lua54"`
- #[cfg(any(feature = "lua54"))]
+ #[cfg(feature = "lua54")]
#[cfg_attr(docsrs, doc(cfg(feature = "lua54")))]
Generational,
}
@@ -1280,7 +1280,7 @@ impl Lua {
/// Requires `feature = "lua54"`
///
/// [lua_doc]: https://www.lua.org/manual/5.4/manual.html#2.5.2
- #[cfg(any(feature = "lua54"))]
+ #[cfg(feature = "lua54")]
#[cfg_attr(docsrs, doc(cfg(feature = "lua54")))]
pub fn gc_gen(&self, minor_multiplier: c_int, major_multiplier: c_int) -> GCMode {
let state = self.main_state;