Skip to content

Commit

Permalink
Bump ruby, deps and fix clippy warning for Rust 1.79
Browse files Browse the repository at this point in the history
  • Loading branch information
wks committed Jun 25, 2024
1 parent aa33771 commit cf70302
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
34 changes: 17 additions & 17 deletions mmtk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"
# Metadata for the Ruby repository
[package.metadata.ci-repos.ruby]
repo = "mmtk/ruby" # This is used by actions/checkout, so the format is "owner/repo", not URL.
rev = "0f475fdfee76247c516464aac04022338a5ed824"
rev = "c9ff790aa7692fc941757cd9ca1d2e64e63cb9b6"

[lib]
name = "mmtk_ruby"
Expand Down
12 changes: 12 additions & 0 deletions mmtk/src/binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ pub struct RubyBindingFast {
pub gc_enabled: AtomicBool,
}

impl Default for RubyBindingFast {
fn default() -> Self {
Self::new()
}
}

impl RubyBindingFast {
pub const fn new() -> Self {
Self {
Expand All @@ -33,6 +39,12 @@ pub struct RubyBindingFastMut {
pub suffix_size: usize,
}

impl Default for RubyBindingFastMut {
fn default() -> Self {
Self::new()
}
}

impl RubyBindingFastMut {
pub const fn new() -> Self {
Self { suffix_size: 0 }
Expand Down

0 comments on commit cf70302

Please sign in to comment.