Fixed merge issues

This commit is contained in:
ptitSeb
2023-03-08 17:22:14 +01:00
parent 4bf34da06f
commit 241504f200
6 changed files with 13 additions and 19 deletions

View File

@@ -72,7 +72,7 @@ impl Memory {
/// Creates a view into the memory that then allows for
/// read and write
pub fn view<'a>(&'a self, store: &impl AsStoreRef) -> MemoryView<'a> {
pub fn view<'a>(&self, store: &'a impl AsStoreRef) -> MemoryView<'a> {
MemoryView::new(self, store)
}

View File

@@ -19,7 +19,7 @@ use crate::sys::externals::memory_view as memory_view_impl;
pub struct MemoryView<'a>(pub(crate) memory_view_impl::MemoryView<'a>);
impl<'a> MemoryView<'a> {
pub(crate) fn new(memory: &'a Memory, store: &impl AsStoreRef) -> Self {
pub(crate) fn new(memory: &Memory, store: &'a impl AsStoreRef) -> Self {
MemoryView(memory_view_impl::MemoryView::new(&memory.0, store))
}

View File

@@ -106,13 +106,9 @@ impl Memory {
self.handle.ty
}
<<<<<<< HEAD
/// Creates a view into the memory that then allows for
/// read and write
pub fn view<'a>(&self, store: &'a impl AsStoreRef) -> MemoryView<'a> {
=======
pub fn view(&self, store: &impl AsStoreRef) -> MemoryView {
>>>>>>> master
MemoryView::new(self, store)
}

View File

@@ -42,7 +42,7 @@ impl Memory {
/// Creates a view into the memory that then allows for
/// read and write
pub fn view<'a>(&'a self, store: &impl AsStoreRef) -> MemoryView<'a> {
pub fn view<'a>(&self, store: &'a impl AsStoreRef) -> MemoryView<'a> {
MemoryView::new(self, store)
}

View File

@@ -22,7 +22,7 @@ pub struct MemoryView<'a> {
}
impl<'a> MemoryView<'a> {
pub(crate) fn new(memory: &'a Memory, store: &impl AsStoreRef) -> Self {
pub(crate) fn new(memory: &Memory, store: &'a impl AsStoreRef) -> Self {
let size = memory.handle.get(store.as_store_ref().objects()).size();
let definition = memory.handle.get(store.as_store_ref().objects()).vmmemory();