Skip to content

httpmock 0.8.0-alpha.1 breaks generated mocks #904

@jayvdb

Description

@jayvdb

Just a heads up that the next version of httpmock will require some small changes.

I see one error and a deprecation

error[E0615]: attempted to take value of method `query_params` on type `&HttpMockRequest`
   --> libs/test-http-mocks/src/foo.rs:100:25
    |
100 |                     req.query_params
    |                         ^^^^^^^^^^^^ method, not a field
    |
help: use parentheses to call the method
    |
100 |                     req.query_params()
    |                                     ++

warning: use of deprecated method `httpmock::When::matches`: Please use the `is_true` and `is_false` function instead
  --> libs/test-http-mocks/src/bar.rs:80:29
   |
80 |                 Self(self.0.matches(|req| {
   |                             ^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions