Revert "switch back to source-span for now"

This reverts commit 9310fcde66.
This commit is contained in:
Robin Appelman 2022-01-19 15:43:23 +01:00
commit e5d94364cc
4 changed files with 86 additions and 129 deletions

View file

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

View file

@ -1,7 +1,7 @@
use main_error::MainError;
use miette::DiagnosticResult;
use php_literal_parser::{from_str, Value};
fn main() -> Result<(), MainError> {
fn main() -> DiagnosticResult<()> {
let source = r###"
array (
"double" => "quote",