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