Peltoche / ical-rs

Rust parser for ics (rfc5545) and vcard (rfc6350)
Apache License 2.0
110 stars 21 forks source link

IcalEvent and others are private #28

Closed anlumo closed 6 years ago

anlumo commented 6 years ago

I can't pass single events to other functions, because I can't reference the type IcalEvent by name, since it's in the private module “component”.

The same is true for everything else in ical::parser::ical::component except IcalParser, which is reexported from the top level module.

Peltoche commented 6 years ago

Hello @anlumo,

Thanks for the report. Can you be more specific? Do you have an example?

anlumo commented 6 years ago

Here's the code. I'd like to move the contents of this for-loop into its own function but I can't.

Peltoche commented 6 years ago

@anlumo The review above should fix you issue. Could you review it, juste to be sure please?

anlumo commented 6 years ago

Yes, it works! Thank you!