no field query on type Result<Config, &str>
no field filename on type Result<Config, &str>
I was following along, making changes incrementally and then ran into this. I couldn't figure out where the differences were, and ended up just copying-and-pasting the entire listing just to get it to compile. But i still get the above errors.
Is there a mistake in the book? What should the listing be?
Listing 12-9 shows you only how the Config impl changes. At this point it's expected for the whole not to compile. The book then goes and shows how to adapt your main function to the new Config, in listing 12-10. At this point I think everything should compile again
Ugh, thank you, guess i should have read a bit further before bashing my head against this for a while! It's just that everywhere else in the book (so far) if an example won't compile it tells you so and explains why.
BTW, it's strange that this example is not marked as non-compilable by Ferris. I'm not sure how to fix it yet, but probably will have a look at it later today.