syndication icon indicating copy to clipboard operation
syndication copied to clipboard

Fix `Reading` examle code

Open y-yagi opened this issue 2 years ago • 0 comments

The current example code has the following compile error.

error[E0616]: field `entries` of struct `atom_syndication::feed::Feed` is private
  --> src/main.rs:20:63
   |
20 |             println!("Atom feed first entry: {:?}", atom_feed.entries[0].title)
   |                                                               ^^^^^^^ private field
   |

error[E0616]: field `title` of struct `atom_syndication::entry::Entry` is private
  --> src/main.rs:20:74
   |
20 |             println!("Atom feed first entry: {:?}", atom_feed.entries[0].title)
   |                                                                          ^^^^^ private field

This patch fixed that issue and changed it to work.

y-yagi avatar Jan 19 '23 09:01 y-yagi