Clippy fixes after updating Rust to v1.66

This commit is contained in:
Louis Dureuil 2022-12-19 14:12:26 +01:00
parent 867279f2a4
commit 869d331680
No known key found for this signature in database
8 changed files with 25 additions and 25 deletions

View file

@ -19,7 +19,7 @@ pub fn create_version_file(db_path: &Path) -> io::Result<()> {
pub fn check_version_file(db_path: &Path) -> anyhow::Result<()> {
let version_path = db_path.join(VERSION_FILE_NAME);
match fs::read_to_string(&version_path) {
match fs::read_to_string(version_path) {
Ok(version) => {
let version_components = version.split('.').collect::<Vec<_>>();
let (major, minor, patch) = match &version_components[..] {