This bounty is no longer available
Web3 DAO | Ethereum Foundation Logo

Add `unwrap_used` lint warning to all workspaces

Organization

Ethereum Foundation

Deadline

N/A

Status

ENDED


INSTRUCTIONS

From https://github.com/ethereum/trin/pull/681#discussion_r1173387002 it appears like we're not linting for naked unwraps in all workspaces.

How to fix it?

Add #![warn(clippy::unwrap_used)] to lib.rs for any workspace that doesn't already contain this lint. Example: https://github.com/ethereum/trin/blob/master/trin-history/src/lib.rs. And handle any unwraps that might be lurking