Fix ui tests in nightly
This commit is contained in:
parent
dffa33fb46
commit
d6c8b6b022
3 changed files with 5 additions and 4 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"rust-analyzer.check.command": "clippy",
|
||||
"rust-analyzer.cargo.features": "all"
|
||||
"rust-analyzer.cargo.features": "all",
|
||||
"rust-analyzer.testExplorer": true
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ error: JsonSchema_repr: must be a unit variant
|
|||
--> $DIR/repr_non_unit_variant.rs:7:5
|
||||
|
|
||||
7 | EmptyTuple(),
|
||||
| ^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
|
@ -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 {
|
||||
Style::Unit => None,
|
||||
_ => Some(syn::Error::new(
|
||||
v.original.span(),
|
||||
_ => Some(syn::Error::new_spanned(
|
||||
v.original,
|
||||
"JsonSchema_repr: must be a unit variant",
|
||||
)),
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue