Skip to content

Commit d01ce83

Browse files
committed
style: format errors5 with rustfmt
1 parent 8b0507c commit d01ce83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/error_handling/errors5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// For now, think of the `Box<dyn ...>` type as an "I want anything that does ???" type, which, given
88
// Rust's usual standards for runtime safety, should strike you as somewhat lenient!
99

10-
// In short, this particular use case for boxes is for when you want to own a value and you care only that it is a
10+
// In short, this particular use case for boxes is for when you want to own a value and you care only that it is a
1111
// type which implements a particular trait. To do so, The Box is declared as of type Box<dyn Trait> where Trait is the trait
1212
// the compiler looks for on any value used in that context. For this exercise, that context is the potential errors
1313
// which can be returned in a Result.
@@ -46,7 +46,7 @@ impl PositiveNonzeroInteger {
4646
match value {
4747
x if x < 0 => Err(CreationError::Negative),
4848
x if x == 0 => Err(CreationError::Zero),
49-
x => Ok(PositiveNonzeroInteger(x as u64))
49+
x => Ok(PositiveNonzeroInteger(x as u64)),
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)