switch back to source-span for now

This commit is contained in:
Robin Appelman 2021-09-09 15:59:22 +02:00
commit 9310fcde66
4 changed files with 133 additions and 85 deletions

View file

@ -1,4 +1,4 @@
use miette::DiagnosticResult;
use main_error::MainError;
use php_literal_parser::from_str;
use serde_derive::Deserialize;
@ -8,7 +8,7 @@ struct Target {
bars: Vec<u8>,
}
fn main() -> DiagnosticResult<()> {
fn main() -> Result<(), MainError> {
let target = from_str(r#"["foo" => true, "bars" => [1, 2, 3, 4]]"#)?;
assert_eq!(