Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/dfx/src/lib/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ impl Environment for EnvironmentImpl {
}

fn get_network_descriptor(&self) -> Option<&NetworkDescriptor> {
// create an AgentEnvironment explicitly, in order to specify network and agent.
// See install, build for examples.
None
// It's not valid to call get_network_descriptor on an EnvironmentImpl.
// All of the places that call this have an AgentEnvironment anyway.
unreachable!("NetworkDescriptor only available from an AgentEnvironment");
}

fn get_logger(&self) -> &slog::Logger {
Expand Down