1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

chore: allow unused variables

This commit is contained in:
Paul-Christian Volkmer 2025-02-25 00:04:22 +01:00
parent 5b6ae2794e
commit b097798ac8

View File

@ -1,7 +1,7 @@
/* /*
* This file is part of osc-variant * This file is part of osc-variant
* *
* Copyright (C) 2024 the original author or authors. * Copyright (C) 2025 the original author or authors.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -89,6 +89,7 @@ impl InputFile {
.to_string() .to_string()
} }
#[allow(unused_variables)]
pub fn read(filename: String, password: Option<String>) -> Result<Self, FileError> { pub fn read(filename: String, password: Option<String>) -> Result<Self, FileError> {
if let Some(extension) = Path::new(filename.as_str()).extension() { if let Some(extension) = Path::new(filename.as_str()).extension() {
return match extension.to_str() { return match extension.to_str() {