infallible

Function infallible 

Source
pub fn infallible(_input: &str) -> QuartzResult
Expand description

Validator for files that don’t have to do any checks. It is garanteed to return Ok.

§Examples

use quartz_cli::validator;

// Totally broken JSON input
let input = r#"
{
    "value":
"#;

assert!(validator::infallible(input).is_ok());