Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Reading examle code #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

y-yagi
Copy link

@y-yagi y-yagi commented Jan 19, 2023

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant