Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: more idiomatic identity override #3743

Merged
merged 2 commits into from
May 7, 2024

Conversation

ericswanson-dfinity
Copy link
Member

Description

Changes the signature of Environment::get_identity_override() and IdentityManager::new() to be more idiomatic rust, using Option<&str> rather than &Option<String>.

The motivation is in consideration of another caller of IdentityManager::new(), which may pass None for the identity override.

How Has This Been Tested?

Refactor covered by e2e

@ericswanson-dfinity ericswanson-dfinity enabled auto-merge (squash) May 6, 2024 20:41
@ericswanson-dfinity ericswanson-dfinity merged commit 0986008 into master May 7, 2024
178 checks passed
@ericswanson-dfinity ericswanson-dfinity deleted the ens/refactor-get-identity-override branch May 7, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants