Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed Apr 20, 2024
1 parent 0fd8167 commit 1836345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyo3-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ impl Parse for PythonImportKeyword {
match keyword.to_string().as_str() {
"from" => Ok(PythonImportKeyword::from),
"import" => Ok(PythonImportKeyword::import),
_ => Err(syn::Error::new(keyword.span(), "invalid import statement: expect 'from' or 'import' here")),
_ => Err(syn::Error::new(
keyword.span(),
"invalid import statement: expect 'from' or 'import' here",
)),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_compile_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ fn test_compile_errors_pyo3testing() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/invalid_pyo3imports.rs");
}

0 comments on commit 1836345

Please sign in to comment.