diff options
Diffstat (limited to 'users/tazjin/rlox/src/resolver.rs')
-rw-r--r-- | users/tazjin/rlox/src/resolver.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/users/tazjin/rlox/src/resolver.rs b/users/tazjin/rlox/src/resolver.rs index f5ef91b99a19..03ac3c8e6794 100644 --- a/users/tazjin/rlox/src/resolver.rs +++ b/users/tazjin/rlox/src/resolver.rs @@ -186,8 +186,7 @@ impl<'a> Resolver<'a> { } } -pub fn resolve(mut block: parser::Block) -> Result<parser::Block, Error> { +pub fn resolve(block: &mut parser::Block) -> Result<(), Error> { let mut resolver: Resolver = Default::default(); - resolver.resolve(&mut block)?; - Ok(block) + resolver.resolve(block) } |