Skip to content

Commit

Permalink
Merge pull request #55 from indiv0/chore-fix-formatting
Browse files Browse the repository at this point in the history
Fix whitespace formatting
  • Loading branch information
indiv0 committed Oct 25, 2016
2 parents b66eb24 + 1968692 commit ed58634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ impl<T> LazyCell<T> {
pub fn fill(&self, t: T) -> Result<(), T> {
let mut slot = unsafe { &mut *self.inner.get() };
if slot.is_some() {
return Err(t);
return Err(t);
}
*slot = Some(t);

Ok(())
Ok(())
}

/// Test whether this cell has been previously filled.
Expand Down

0 comments on commit ed58634

Please sign in to comment.