Skip to content

Commit

Permalink
News and docs about HttpResponse mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Sep 14, 2023
1 parent 4aed71e commit 24c491b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# cargo-mutants changelog

## Unreleased

- Generate `HttpResponse::Ok().finish()` as a mutation of an Actix `HttpResponse`.

## 23.6.0

- Generate `Box::leak(Box::new(...))` as a mutation of functions returning
Expand Down
1 change: 1 addition & 0 deletions book/src/mutants.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ More mutation genres and patterns will be added in future releases.
| `Arc<T>` | `Arc::new(...)` |
| `[T; L]` | `[r; L]` for all replacements of T |
| `&T` | `&...` (all replacements for T) |
| `HttpResponse` | `HttpResponse::Ok().finish` |
| (any other) | `Default::default()` |

`...` in the mutation patterns indicates that the type is recursively mutated.
Expand Down

0 comments on commit 24c491b

Please sign in to comment.