Skip to content

Commit e35dc20

Browse files
authored
Merge pull request #42 from fastly/quoteless-variables
Add Comprehensive Operator Support and Improve Expression Parsing
2 parents f403a7d + d918176 commit e35dc20

File tree

9 files changed

+1144
-330
lines changed

9 files changed

+1144
-330
lines changed

Cargo.lock

Lines changed: 325 additions & 234 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ members = [
1010
]
1111

1212
[workspace.package]
13-
version = "0.6.1"
13+
version = "0.6.2"
1414
authors = [
1515
"Kailan Blanks <kblanks@fastly.com>",
1616
"Vadim Getmanshchuk <vadim@fastly.com>",

esi/src/document.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ impl Task {
6363
///
6464
pub enum Element {
6565
Raw(Vec<u8>),
66-
Include(Fragment),
66+
Include(Box<Fragment>),
6767
Try {
68-
except_task: Task,
69-
attempt_task: Task,
68+
except_task: Box<Task>,
69+
attempt_task: Box<Task>,
7070
},
7171
}
7272

@@ -99,10 +99,10 @@ impl std::fmt::Debug for Element {
9999
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
100100
match self {
101101
Self::Raw(_) => write!(f, "Raw"),
102-
Self::Include(Fragment { alt: Some(_), .. }) => {
102+
Self::Include(fragment) if fragment.alt.is_some() => {
103103
write!(f, "Include Fragment(with alt)")
104104
}
105-
Self::Include(Fragment { .. }) => write!(f, "Include Fragment"),
105+
Self::Include(_) => write!(f, "Include Fragment"),
106106
Self::Try {
107107
attempt_task,
108108
except_task,

0 commit comments

Comments
 (0)