-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare v0.2.0. * Tweak escape sequence.
- Loading branch information
1 parent
7be4251
commit 8bc6115
Showing
11 changed files
with
338 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
output-type: lcov | ||
excl-start: | ||
- "mod tests \\{" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
# Changelog | ||
|
||
## 0.2.0 | ||
|
||
- Removed `Copy` trait from structs with mutable state (i.e. `*Die` structs). | ||
- `Roll.roll` trait now takes a `&Rotate` instead of taking ownership: | ||
|
||
```diff | ||
let d6 = D6::new(); | ||
- let rd = roller.roll(d6); | ||
+ let rd = roller.roll(&d6); | ||
assert_eq!(rd.value(), 3); | ||
``` | ||
|
||
_This was always the intended behavior, we just made a mistake :)_ | ||
|
||
- `SliceDie::with_position(position, element)` changed to `(element, position`): | ||
|
||
```diff | ||
type GradeDie<'a> = SliceDie<'a, char, 5>; | ||
const GRADES: [char; 5] = ['A', 'B', 'C', 'D', 'F']; | ||
|
||
- let d = GradeDie::with_position(1, &GRADES); | ||
+ let d = GradeDie::with_position(&GRADES, 1); | ||
assert_eq!(d.value(), &'B'); | ||
``` | ||
|
||
- Fixed a bug where negative rotations on `SliceDie` were treated as positive. | ||
|
||
## 0.1.0 | ||
|
||
- Initial release. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='target/coverage/cargo-test-%p-%m.profraw' cargo test --tests | ||
grcov target/coverage --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html | ||
grcov target/coverage --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" --excl-start "mod tests \{" -o target/coverage/html | ||
open target/coverage/html/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.