8000 Some statements can be simplified for readability · Issue #404 · brave/adblock-rust · GitHub
[go: up one dir, main page]

Skip to content

Some statements can be simplified for readability #404

Open

Description

@hirehamir

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0