Skip to content

Commit

Permalink
update to stable and fix cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sno2 authored and aapoalas committed Sep 10, 2023
1 parent 56e767f commit 5afd047
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions nova_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"

[dependencies]
clap = { version = "4.3", features = ["derive"] }
oxc_parser = "0.0.6"
oxc_ast = "0.0.6"
oxc_parser = "0.1.0"
oxc_ast = "0.1.0"
oxc_span = "0.1.0"
nova_vm = { path = "../nova_vm" }
3 changes: 1 addition & 2 deletions nova_cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use clap::{Parser as ClapParser, Subcommand};
use nova_vm::heap::Heap;
use oxc_ast::SourceType;
use oxc_parser::Parser;
use oxc_span::SourceType;

/// A JavaScript engine
#[derive(Debug, ClapParser)] // requires `derive` feature
Expand Down
2 changes: 1 addition & 1 deletion nova_vm/src/small_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl SmallString {
.iter()
.rev()
.position(|&x| x != 0)
.unwrap_or(7)
.map_or(0, |i| 7 - i)
}

#[inline]
Expand Down
2 changes: 0 additions & 2 deletions rust-toolchain.toml

This file was deleted.

0 comments on commit 5afd047

Please sign in to comment.