Skip to content

Review code for use of expect()/unwrap()/panic!()/assert!() #196

@simongdavies

Description

@simongdavies

There are numerous places where we use either expect()/unwrap()/panic!()/assert!() we should review and remove these where possible as they will cause the host process to crash.

Consider adding the following clippy checks:

expect_used
panic
unwrap_used

We should also check for use of indexing like this function_call.parameters.clone().unwrap()[0].clone() without checking the number of items.

Metadata

Metadata

Assignees

Labels

lifecycle/duplicateThis issue is a duplicate of another issue

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions