Streamline as_mut to &mut.

This commit is contained in:
Stephen Chung
2021-04-17 13:54:24 +08:00
parent 199df9aa4a
commit 2f2b7403cb
4 changed files with 16 additions and 26 deletions

View File

@@ -381,7 +381,7 @@ fn parse_fn_call(
(Token::RightParen, _) => {
eat_token(input, Token::RightParen);
let hash = if let Some(modules) = namespace.as_mut() {
let hash = if let Some(ref mut modules) = namespace {
#[cfg(not(feature = "no_module"))]
modules.set_index(state.find_module(&modules[0].name));