Skip to content

daemon: rename internal SelectCredential states to SelectingCredential - #254

Open
kpanuragh wants to merge 1 commit into
linux-credentials:mainfrom
kpanuragh:selecting-credential-states
Open

kpanuragh wants to merge 1 commit into
linux-credentials:mainfrom
kpanuragh:selecting-credential-states

Conversation

@kpanuragh

Copy link
Copy Markdown

Follow-up to 154e50f, as noted in #77: NfcStateInternal and UsbStateInternal still used SelectCredential. This renames them to SelectingCredential to match the public NfcState/UsbState and the other -ing states. There's no behaviour change.

About doc/api.md: its only SelectCredential is the ## SelectCredential(credential_id: [s]) method heading in the flow-control section. That seems to be stale, since selection now goes through the UserInteracted signal as CredentialSelected, not a method. Should I update that section in this PR, or handle it separately?

Closes #77

Tested: meson test 5/5, cargo clippy -p credentialsd --bins clean.

NfcStateInternal and UsbStateInternal still used the old name after the
public NfcState/UsbState variants were renamed in 154e50f. Use the
-ing form like the other states.

Refs linux-credentials#77
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.

nit: Change SelectCredential to SelectingCredential

1 participant