Skip to content

Commit

Permalink
Use more indiomatic Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantSparks committed Jul 4, 2024
1 parent ff5fe01 commit a06488d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/config_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct AppConfig {
impl TokenExpandingConfig for AppConfig {}

fn main() -> Result<(), Error> {
let config: AppConfig = grafton_config::load_config_from_dir("examples/config")?;
let config = grafton_config::load_config_from_dir::<AppConfig>("examples/config")?;
println!("Database URL: {}", config.server.database_url);
Ok(())
}

0 comments on commit a06488d

Please sign in to comment.