]> git.lizzy.rs Git - rust.git/commitdiff
clippy nits
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 6 Jun 2016 13:24:56 +0000 (15:24 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 8 Jun 2016 07:41:28 +0000 (09:41 +0200)
src/interpreter/stepper.rs
src/memory.rs

index 6fb287228be88d25221686f81e54498f9e9435bd..f733d1d46c8380af4f81d8e3691d885177781adb 100644 (file)
@@ -129,7 +129,7 @@ pub fn step(&mut self) -> EvalResult<Event> {
             Ok(Event::Terminator)
         } else {
             self.process = Self::constant;
-            return Ok(Event::Constant);
+            Ok(Event::Constant)
         }
     }
 
index 728d5310f8611c96fcd7e17b23d00cb31feacfa2..ab527a47c0bf5cbb57088e54ffa7fae6bfd5288d 100644 (file)
@@ -88,7 +88,7 @@ pub fn reallocate(&mut self, ptr: Pointer, new_size: usize) -> EvalResult<()> {
             alloc.bytes.extend(iter::repeat(0).take(amount));
             alloc.undef_mask.grow(amount, false);
         } else if size > new_size {
-            return Err(EvalError::Unimplemented(format!("unimplemented allocation relocation")));
+            return Err(EvalError::Unimplemented(format!("unimplemented allocation relocation (from {} to {})", size, new_size)));
             // alloc.bytes.truncate(new_size);
             // alloc.undef_mask.len = new_size;
             // TODO: potentially remove relocations