mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
refactor: rename method and property
This commit is contained in:
parent
55cc9eeb29
commit
3445c3db3e
@ -162,7 +162,7 @@ pub fn check_file(file: &Path, password: &Option<String>) -> Result<Vec<CheckNot
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn print_checks() {
|
pub fn print() {
|
||||||
struct Problem<'a> {
|
struct Problem<'a> {
|
||||||
code: &'a str,
|
code: &'a str,
|
||||||
name: &'a str,
|
name: &'a str,
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 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::cli::{Cli, SubCommand};
|
||||||
use crate::file_io::{FileError, FileReader, InputFile};
|
use crate::file_io::{FileError, FileReader, InputFile};
|
||||||
use crate::model::onkostar_editor::OnkostarEditor;
|
use crate::model::onkostar_editor::OnkostarEditor;
|
||||||
@ -287,7 +287,7 @@ pub fn handle(command: SubCommand) -> Result<(), Box<dyn Error>> {
|
|||||||
password,
|
password,
|
||||||
} => {
|
} => {
|
||||||
if list {
|
if list {
|
||||||
print_checks();
|
print();
|
||||||
} else {
|
} else {
|
||||||
match check_file(Path::new(file.unwrap_or_default().as_str()), &password) {
|
match check_file(Path::new(file.unwrap_or_default().as_str()), &password) {
|
||||||
Ok(notices) => {
|
Ok(notices) => {
|
||||||
|
@ -48,7 +48,7 @@ pub struct UnterformularType;
|
|||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Form<Type> {
|
pub struct Form<Type> {
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
form_type: PhantomData<Type>,
|
_type: PhantomData<Type>,
|
||||||
|
|
||||||
#[serde(rename = "DataCatalogues")]
|
#[serde(rename = "DataCatalogues")]
|
||||||
data_catalogues: DataCatalogues,
|
data_catalogues: DataCatalogues,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user