LukeMathWalker / zero-to-production

Code for "Zero To Production In Rust", a book on API development using Rust.
https://www.zero2prod.com
Apache License 2.0
5.73k stars 491 forks source link

I was very surprised by the "utils" bits. #235

Open rlpowell opened 10 months ago

rlpowell commented 10 months ago

In 10.8.2.1 we have:

//! src/routes/admin/password/get.rs
use crate::session_state::TypedSession;
use crate::utils::{e500, see_other};

I wrote a whole thing about how I couldn't find it anywhere, but:

It's two pages later. :sigh: Uh, maybe move src/utils.rs first? :D