mirror of
https://codeberg.org/icewind/php-literal-parser.git
synced 2026-06-03 18:44:07 +02:00
update miette to 3.0
This commit is contained in:
parent
c06abe0d7e
commit
71427689e7
4 changed files with 15 additions and 26 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use miette::DiagnosticResult;
|
||||
use miette::Result;
|
||||
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<()> {
|
||||
let target = from_str(r#"["foo" => true, "bars" => [1, 2, 3, 4]]"#)?;
|
||||
|
||||
assert_eq!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue