tailhook / rust-quire

A YAML-based configuration library for Rust
https://docs.rs/quire/
Other
13 stars 5 forks source link

Itemlists2 #24

Open stappersg opened 4 years ago

stappersg commented 4 years ago

Pull Request is for issue #20 and superseeds #21, is against the serde branch. Would liked to have a staging branch.

Reason for staging is that only partly is works, it does NOT do iterate of a list.

jrny.team is struct Journey fieid team of type Members. And Members is a Vec<string>.

Upon

    for tm in jrny.team {
        println!("team member {}.", tm);
    }

is compiler error

error[E0507]: cannot move out of borrowed content
  --> examples/item_lists.rs:75:15
   |
75 |     for tm in jrny.team {
   |               ^^^^^^^^^ cannot move out of borrowed content

error: aborting due to previous error