Remove warnings.

This commit is contained in:
Stephen Chung 2023-03-08 22:48:36 +08:00
parent e8dfabf967
commit bb404a415d
2 changed files with 3 additions and 2 deletions

View File

@ -1722,7 +1722,7 @@ impl Engine {
lib: &mut FnLib,
settings: ParseSettings,
mut lhs: Expr,
options: ChainingFlags,
_options: ChainingFlags,
) -> ParseResult<Expr> {
let mut settings = settings;
@ -1783,7 +1783,7 @@ impl Engine {
// Disallowed module separator
#[cfg(not(feature = "no_module"))]
(_, token @ Token::DoubleColon)
if options.contains(ChainingFlags::DISALLOW_NAMESPACES) =>
if _options.contains(ChainingFlags::DISALLOW_NAMESPACES) =>
{
return Err(LexError::ImproperSymbol(
token.literal_syntax().into(),

View File

@ -392,6 +392,7 @@ impl Scope<'_> {
}
/// Remove the last entry from the [`Scope`] and return it.
#[inline(always)]
#[allow(dead_code)]
pub(crate) fn pop_entry(&mut self) -> Option<(Identifier, Dynamic, Vec<ImmutableString>)> {
self.values.pop().map(|value| {
(