Skip to content

Some statements can be simplified for readability #404

Open
@hamirmahal

Description

@hamirmahal

We can replace lines like

assert!(engine.check_network_request(&request).matched == *expectation,
    "Expected match = {} for {} from {} typed {} against {:?}", expectation, url, source_url, request_type, rules)

with

assert!(engine.check_network_request(&request).matched == *expectation,
    "Expected match = {expectation} for {url} from {source_url} typed {request_type} against {rules:?}")

to improve code readability and developer productivity.

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