Skip to content

Commit

Permalink
remove linter warning about dyn trait
Browse files Browse the repository at this point in the history
  • Loading branch information
brassy-endomorph committed May 18, 2021
1 parent 4b4b0b6 commit b035164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ketos/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl<T: StructValue> ForeignStructDef<T> {
fn get_rc(&self, value: Value) -> Rc<T> {
match value {
Value::Foreign(fv) => {
ForeignValue::downcast_rc::<T>(fv)
<dyn ForeignValue>::downcast_rc::<T>(fv)
.expect("invalid foreign value for ForeignStructDef")
}
_ => panic!("invalid value for ForeignStructDef")
Expand Down

0 comments on commit b035164

Please sign in to comment.