Skip to content

Commit 609e5ef

Browse files
committed
fix: fully qualified struct paths in Either!
1 parent 6e6d01b commit 609e5ef

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

crates/jrsonnet-evaluator/src/typed/conversions.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ decl_either!(
511511
);
512512
#[macro_export]
513513
macro_rules! Either {
514-
($a:ty) => {Either1<$a>};
515-
($a:ty, $b:ty) => {Either2<$a, $b>};
516-
($a:ty, $b:ty, $c:ty) => {Either3<$a, $b, $c>};
517-
($a:ty, $b:ty, $c:ty, $d:ty) => {Either4<$a, $b, $c, $d>};
518-
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty) => {Either5<$a, $b, $c, $d, $e>};
519-
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty, $f:ty) => {Either6<$a, $b, $c, $d, $e, $f>};
520-
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty, $f:ty, $g:ty) => {Either7<$a, $b, $c, $d, $e, $f, $g>};
514+
($a:ty) => {$crate::typed::Either1<$a>};
515+
($a:ty, $b:ty) => {$crate::typed::Either2<$a, $b>};
516+
($a:ty, $b:ty, $c:ty) => {$crate::typed::Either3<$a, $b, $c>};
517+
($a:ty, $b:ty, $c:ty, $d:ty) => {$crate::typed::Either4<$a, $b, $c, $d>};
518+
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty) => {$crate::typed::Either5<$a, $b, $c, $d, $e>};
519+
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty, $f:ty) => {$crate::typed::Either6<$a, $b, $c, $d, $e, $f>};
520+
($a:ty, $b:ty, $c:ty, $d:ty, $e:ty, $f:ty, $g:ty) => {$crate::typed::Either7<$a, $b, $c, $d, $e, $f, $g>};
521521
}
522522
pub use Either;
523523

crates/jrsonnet-stdlib/src/misc.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,7 @@ pub fn builtin_trace(
6464
match &str {
6565
Val::Str(s) => s.clone().into_flat(),
6666
Val::Func(f) => format!("{f:?}").into(),
67-
v => v
68-
.manifest(JsonFormat::std_to_json(
69-
String::from(" "),
70-
"\n",
71-
": ",
72-
#[cfg(feature = "exp-preserve-order")]
73-
true,
74-
))?
75-
.into(),
67+
v => v.manifest(JsonFormat::debug())?.into(),
7668
},
7769
);
7870
if let Some(rest) = rest {

0 commit comments

Comments
 (0)