removed extra "use" (#197)

I'm not a native speaker so I'm not 100% sure but I guess this "use" shouldn't be there.
This commit is contained in:
Mark Schmale
2016-08-04 13:58:49 +02:00
committed by Philipp Oppermann
parent 9ec1860f02
commit 74cadb15a3

View File

@@ -424,7 +424,7 @@ macro_rules! handler {
``` ```
The macro takes a single Rust identifier (`ident`) as argument and expands to a `{}` block (hence the double braces). The block defines a new wrapper function that calls the function `$name` and passes a pointer to the exception stack frame. Note that we're fixing the argument type to `*const ExceptionStackFrame`. If we used a `_` like before, the passed function could accept an arbitrary argument, which would lead to ugly bugs at runtime. The macro takes a single Rust identifier (`ident`) as argument and expands to a `{}` block (hence the double braces). The block defines a new wrapper function that calls the function `$name` and passes a pointer to the exception stack frame. Note that we're fixing the argument type to `*const ExceptionStackFrame`. If we used a `_` like before, the passed function could accept an arbitrary argument, which would lead to ugly bugs at runtime.
Now we can use remove the `divide_by_zero_wrapper` and use our new `handler!` macro instead: Now we can remove the `divide_by_zero_wrapper` and use our new `handler!` macro instead:
```rust ```rust
// in src/interrupts/mod.rs // in src/interrupts/mod.rs