From fa11f03cb36f836a2cef0ce2729846ea407c48d7 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Mon, 22 Jul 2024 22:19:53 +0100 Subject: [PATCH] chore: Fix another Clippy warning. (#224) --- pywr-schema/src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywr-schema/src/model.rs b/pywr-schema/src/model.rs index 84fa6b0c..c2a17556 100644 --- a/pywr-schema/src/model.rs +++ b/pywr-schema/src/model.rs @@ -879,7 +879,7 @@ impl PywrMultiNetworkModel { let mut model = pywr_core::models::MultiNetworkModel::new(domain); for (name, network) in networks { - model.add_network(&name, network); + model.add_network(&name, network)?; } for (from_network_idx, from_metric, to_network_idx, initial_value) in inter_network_transfers {