Fix ui tests in nightly

This commit is contained in:
Graham Esau 2024-08-30 11:12:23 +01:00
parent dffa33fb46
commit d6c8b6b022
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
{ {
"rust-analyzer.check.command": "clippy", "rust-analyzer.check.command": "clippy",
"rust-analyzer.cargo.features": "all" "rust-analyzer.cargo.features": "all",
"rust-analyzer.testExplorer": true
} }

View file

@ -2,4 +2,4 @@ error: JsonSchema_repr: must be a unit variant
--> $DIR/repr_non_unit_variant.rs:7:5 --> $DIR/repr_non_unit_variant.rs:7:5
| |
7 | EmptyTuple(), 7 | EmptyTuple(),
| ^^^^^^^^^^ | ^^^^^^^^^^^^

View file

@ -81,8 +81,8 @@ pub fn expr_for_repr(cont: &Container) -> Result<SchemaExpr, syn::Error> {
if let Some(non_unit_error) = variants.iter().find_map(|v| match v.style { if let Some(non_unit_error) = variants.iter().find_map(|v| match v.style {
Style::Unit => None, Style::Unit => None,
_ => Some(syn::Error::new( _ => Some(syn::Error::new_spanned(
v.original.span(), v.original,
"JsonSchema_repr: must be a unit variant", "JsonSchema_repr: must be a unit variant",
)), )),
}) { }) {