fmt doc comments

This commit is contained in:
Andy Weidenbaum 2021-12-23 12:18:09 +11:00
parent 738b5b150f
commit 6f6c6be1da

View File

@ -7,16 +7,16 @@ use std::path::{Path, PathBuf};
use crate::types::Result;
/// Stores Lua modules indexed by module name, and provides an `rlua::MetaMethod`
/// to enable `require`ing the stored modules by name in an `rlua::Context`.
/// Stores Lua modules indexed by module name, and provides an `rlua::MetaMethod` to
/// enable `require`ing the stored modules by name in an `rlua::Context`.
struct Searcher {
/// A `HashMap` of Lua modules in string representation, indexed by module name.
///
/// Uses `Cow<'static, str>` types to allow both `&'static str` and owned `String`.
modules: HashMap<Cow<'static, str>, Cow<'static, str>>,
/// An `rlua::RegistryKey` whose value is the Lua environment within which the
/// user made the request to instantiate a `Searcher` for `modules`.
/// An `rlua::RegistryKey` whose value is the Lua environment within which the user
/// made the request to instantiate a `Searcher` for `modules`.
globals: RegistryKey,
}