Skip to content

Commit 65bc42d

Browse files
committed
Fix name and null management
1 parent ff049f1 commit 65bc42d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub enum MinusOneErrorKind {
77
InvalidParent,
88
InvalidProgram,
99
InvalidProgramIndex,
10-
NestedTranscations,
10+
NestedTransactions,
1111
Unknown,
1212
}
1313

@@ -88,7 +88,7 @@ impl Error {
8888

8989
pub fn nested_transactions() -> Self {
9090
Error::MinusOneError(MinusOneError::new(
91-
MinusOneErrorKind::NestedTranscations,
91+
MinusOneErrorKind::NestedTransactions,
9292
"Cannot start transaction: transaction already started",
9393
))
9494
}

src/ps/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<'a> RuleMut<'a> for Cast {
134134
(Some(Type(t)), Some(Raw(Bool(v)))) => if t == "bool" {
135135
node.set(Raw(Bool(*v)));
136136
},
137-
(Some(Type(t)), Some(Powershell::DeadCode)) => if t == "bool" {
137+
(Some(Type(t)), Some(Powershell::Null)) => if t == "bool" {
138138
node.set(Raw(Bool(false)));
139139
},
140140
(Some(Type(t)), Some(Powershell::HashMap(_))) => if t == "bool" {

0 commit comments

Comments
 (0)