arxanas / scm-record

`scm-record` is a UI component to interactively select changes to include in a commit. It's meant to be embedded in source control tooling.
23 stars 9 forks source link

Fix clippy dead_code error for `IsizeExt` with latest 1.78 stable toolchain #40

Closed emesterhazy closed 4 months ago

emesterhazy commented 4 months ago

On 1.78 clippy notices that the clamp_into_u16 IsizeExt trait is dead code. The corresponding function in the UsizeExt trait is used however.

This commit tags the IsizeExt version with #[allow(dead_code)] to silence the clippy error.