Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `interruptable`, a function that allows the currently running interrupt to be interrupted.

### Fixed

- Fixed an issue which was causing compilation failures on rust nightly from 2025-07-04.

## [0.22.2] - 2025/06/24

### Added
Expand Down
17 changes: 10 additions & 7 deletions agb/src/refcount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ impl<T, A: Allocator> RefCount<T, A> {

pub fn new_in(value: T, a: A) -> Self {
let v = unsafe {
NonNull::new_unchecked(Box::into_raw(Box::new_in(
RefCountInner {
inner: value,
count: Cell::new(1),
},
&a,
)))
NonNull::new_unchecked(
Box::into_raw_with_allocator(Box::new_in(
RefCountInner {
inner: value,
count: Cell::new(1),
},
&a,
))
.0,
)
};
Self(v, a)
}
Expand Down
Loading