Skip to content

Commit

Permalink
Dev #67
Browse files Browse the repository at this point in the history
  • Loading branch information
vulogov committed May 14, 2024
1 parent a8777c6 commit 36bc640
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rust_dynamic"
description = "Support for dynamically-typed values in run-time"
version = "0.18.0"
version = "0.18.1"
edition = "2021"
license-file = "LICENSE"
homepage = "https://github.com/vulogov/rust_dynamic"
Expand Down
2 changes: 1 addition & 1 deletion src/create_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Value {
} else if let Some(string_val) = (&value as &dyn Any).downcast_ref::<String>() {
return Result::Ok(Value::from_string((*string_val.clone()).to_string()));
} else if let Some(str_val) = (&value as &dyn Any).downcast_ref::<&str>() {
return Result::Ok(Value::from_str(&*str_val.clone()));
return Result::Ok(Value::from_str(&*str_val));
} else if let Some(lst_val) = (&value as &dyn Any).downcast_ref::<Vec<Value>>() {
return Result::Ok(Value::from_list((*lst_val.clone()).to_vec()));
} else if let Some(err_val) = (&value as &dyn Any).downcast_ref::<BundError>() {
Expand Down

0 comments on commit 36bc640

Please sign in to comment.