dtr_to_rust 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9d654b804b0e2e70eaa7262d789da82638a1f0085af9cb59f1c15172183b69c
4
- data.tar.gz: e19a3975c472be307f7f2b2e23798026fb09778985c2e822ee15f7592bd2c44e
3
+ metadata.gz: 0b601b1a9ea3ca3f47651dbd2cfd90d563244994bdccb0aa7b44ec2882219067
4
+ data.tar.gz: a480b70e8c6bfb2421900f5b82db3c2f8c83d1194954a78683b30db78a67a860
5
5
  SHA512:
6
- metadata.gz: 8d08d0faf3192c0b014be5280f5cc5355e9db939a52aec85eccc34823e14c1fbd8aec6bc87c39754c19dbd1822e8a7e5e9e17b184a69bbcc96136af93442624e
7
- data.tar.gz: 4d2cd11212145f9e374167142f551dbb732673353a6db399144a685dd507c5b6732e2295201c8510a4495df0cbb645f593e4b442ba9735f5a78371caffce57d0
6
+ metadata.gz: d2497d871d595c64552926cde73f20dc574e342ba769de4961baef8c595c31d78f2b9080d3c6793b8ecc28aa981d4ced0c00fa9ff7f1ebbc6335765e4983309d
7
+ data.tar.gz: 5c2eb5673bff37de5fe02a64456eae6b60a2b89182b75fc4a22489e29c016d0fd9f1e3f1fe8ebb30888efa2f4f89f308da9942276d3e4bc1bccd461cdc167654
@@ -5,7 +5,7 @@ module DTRToRust
5
5
  # This class is responsible for generating Rust code for the AddAndAssign instruction.
6
6
  class AddAndAssign < Handler
7
7
  def handle
8
- form_rust_string("#{@instruction[:inputs][0]} += #{@instruction[:inputs][1]}", @instruction[:scope])
8
+ form_rust_string("#{@instruction[:inputs][0]} += #{@instruction[:inputs][1]};", @instruction[:scope])
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module DTRToRust
5
5
  # This class is responsible for generating Rust code for the Evaluate instruction.
6
6
  class Evaluate < Handler
7
7
  def handle
8
- rust_string = "#{@instruction[:assign]} = #{@instruction[:inputs][0]}(#{@instruction[:inputs][1..].join(', ')})"
8
+ rust_string = "#{@instruction[:assign]} = #{@instruction[:inputs][0]}(#{@instruction[:inputs][1..].join(', ')});"
9
9
 
10
10
  form_rust_string(rust_string, @instruction[:scope])
11
11
  end
@@ -5,7 +5,7 @@ module DTRToRust
5
5
  # This class is responsible for generating Rust code for the LogString instruction.
6
6
  class LogString < Handler
7
7
  def handle
8
- form_rust_string("log!(#{@instruction[:inputs].join(',')})", @instruction[:scope])
8
+ form_rust_string("log!(#{@instruction[:inputs].join(',')});", @instruction[:scope])
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_to_rust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst