diff --git a/NEWS.md b/NEWS.md index daf57fd4..9c3d87f5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/book/src/mutants.md b/book/src/mutants.md index 7fac9d3e..ada5cfce 100644 --- a/book/src/mutants.md +++ b/book/src/mutants.md @@ -32,6 +32,7 @@ More mutation genres and patterns will be added in future releases. | `Arc` | `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.