![]() # Objective There is a pattern that appears in multiple places, involving `reflect_clone`, followed by `take`, followed by `map_err` that produces a `FailedDowncast` in a particular form. ## Solution Introduces `reflect_clone_and_take`, which factors out the repeated code. ## Testing `cargo run -p ci` --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> |
||
---|---|---|
.. | ||
impls | ||
attribute_parser.rs | ||
container_attributes.rs | ||
custom_attributes.rs | ||
derive_data.rs | ||
documentation.rs | ||
enum_utility.rs | ||
field_attributes.rs | ||
from_reflect.rs | ||
generics.rs | ||
ident.rs | ||
lib.rs | ||
meta.rs | ||
reflect_opaque.rs | ||
registration.rs | ||
remote.rs | ||
result_sifter.rs | ||
serialization.rs | ||
string_expr.rs | ||
struct_utility.rs | ||
trait_reflection.rs | ||
type_path.rs | ||
where_clause_options.rs |