diff --git a/src/checks/mod.rs b/src/checks/mod.rs index 612b264..2de7adb 100644 --- a/src/checks/mod.rs +++ b/src/checks/mod.rs @@ -162,7 +162,7 @@ pub fn check_file(file: &Path, password: &Option) -> Result { code: &'a str, name: &'a str, diff --git a/src/commands.rs b/src/commands.rs index ab7e022..db5aa28 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -17,7 +17,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -use crate::checks::{check_file, print_checks, CheckNotice}; +use crate::checks::{check_file, print, CheckNotice}; use crate::cli::{Cli, SubCommand}; use crate::file_io::{FileError, FileReader, InputFile}; use crate::model::onkostar_editor::OnkostarEditor; @@ -287,7 +287,7 @@ pub fn handle(command: SubCommand) -> Result<(), Box> { password, } => { if list { - print_checks(); + print(); } else { match check_file(Path::new(file.unwrap_or_default().as_str()), &password) { Ok(notices) => { diff --git a/src/model/form.rs b/src/model/form.rs index 47d37a9..01f1519 100644 --- a/src/model/form.rs +++ b/src/model/form.rs @@ -48,7 +48,7 @@ pub struct UnterformularType; #[serde(deny_unknown_fields)] pub struct Form { #[serde(skip)] - form_type: PhantomData, + _type: PhantomData, #[serde(rename = "DataCatalogues")] data_catalogues: DataCatalogues,