From cf4a6bb3b6a1e2a074a4fc7fef8c4b54ec82c6b6 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Mon, 22 Jul 2024 16:15:15 +0100 Subject: [PATCH] chore: Fix Clippy another warning. --- 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 {