Skip to content
Open
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
2 changes: 1 addition & 1 deletion fighters/common/src/function_hooks/vtables/demon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub unsafe extern "C" fn demon_on_attack(vtable: u64, fighter: &mut Fighter, log
*FIGHTER_DEMON_STATUS_KIND_ATTACK_STEP_2S,
].contains(&status)
&& VarModule::is_flag(battle_object, vars::demon::status::CHECK_STEP_CANCEL) {
let collision_log: &mut CollisionLog = std::mem::transmute(log);
let collision_log: &CollisionLog = &*std::ptr::with_exposed_provenance::<CollisionLog>(log as usize);
if [
*COLLISION_KIND_ATTACK as u8,
*COLLISION_KIND_HIT as u8,
Expand Down
6 changes: 3 additions & 3 deletions src/matchup/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ impl<T> CppVector<T> {
}
}

pub fn iter(&self) -> CppVectorIterator<T> {
pub fn iter(&self) -> CppVectorIterator<'_, T> {
self.into_iter()
}

pub fn iter_mut(&mut self) -> CppVectorIteratorMut<T> {
pub fn iter_mut(&mut self) -> CppVectorIteratorMut<'_, T> {
self.into_iter()
}

Expand Down Expand Up @@ -326,7 +326,7 @@ impl ResList {
}
}

pub fn node_iter(&self) -> NodeIter {
pub fn node_iter(&self) -> NodeIter<'_> {
NodeIter {
list: self,
count: 0,
Expand Down
Loading