mirror of
https://github.com/Dummi26/mers.git
synced 2026-01-26 10:47:04 +01:00
fix: mutable immutability
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mers_lib"
|
||||
version = "0.9.28"
|
||||
version = "0.9.29"
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "library to use the mers language in other projects"
|
||||
|
||||
@@ -17,8 +17,8 @@ pub fn assign(from: &Data, target: &Data) {
|
||||
.as_any()
|
||||
.downcast_ref::<crate::data::reference::Reference>()
|
||||
.and_then(|r| {
|
||||
r.read()
|
||||
.get()
|
||||
r.write()
|
||||
.get_mut()
|
||||
.as_any()
|
||||
.downcast_ref::<crate::data::tuple::Tuple>()
|
||||
.map(|v| (v.clone_refs(), true))
|
||||
@@ -46,8 +46,8 @@ pub fn assign(from: &Data, target: &Data) {
|
||||
.as_any()
|
||||
.downcast_ref::<crate::data::reference::Reference>()
|
||||
.and_then(|r| {
|
||||
r.read()
|
||||
.get()
|
||||
r.write()
|
||||
.get_mut()
|
||||
.as_any()
|
||||
.downcast_ref::<crate::data::object::Object>()
|
||||
.map(|v| (v.clone_refs(), true))
|
||||
|
||||
Reference in New Issue
Block a user