unused-code / unused

A tool to identify potentially unused code.
https://unused.codes
MIT License
283 stars 11 forks source link

Read tags files that include non-UTF-8 characters #23

Closed joshuaclayton closed 3 years ago

joshuaclayton commented 3 years ago

What?

Tags files, even those generated with universal ctags, can't guarantee they don't include non-UTF-8 characters.

This replaces the use of Rust's built-in std::fs::read_to_string with a lossy read, allowing tags files with non-UTF-8 characters to be parsed.