8000 Refactor the `ascii::Target` API by stphnt · Pull Request #92 · stphnt/zproto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor the ascii::Target API #92

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

Merged
merged 1 commit into from
Jan 22, 2023
Merged

Refactor the ascii::Target API #92

merged 1 commit into from
Jan 22, 2023

Conversation

stphnt
Copy link
Owner
@stphnt stphnt commented Jan 22, 2023

The previous API was a mix of constructors and getters. However, the constructors looked like getters, the getters didn't follow the Rust API guidelines (they started with get_). This change makes the constructors read more clearly as constructors and makes the getters follow the API guidelines. It also expands the documentation to avoid confusion.

Closes #86

@stphnt stphnt added the breaking Breaking change label Jan 22, 2023
@stphnt stphnt added this to the 0.3.0 milestone Jan 22, 2023
@stphnt stphnt self-assigned this Jan 22, 2023
@stphnt stphnt force-pushed the refactor-ascii-target branch from edb5cf5 to 5dc5ad9 Compare January 22, 2023 07:22
@stphnt stphnt enabled auto-merge January 22, 2023 07:23
The previous API was a mix of constructors and getters. However,
the constructors looked like getters and the getters didn't follow
the Rust API guidelines (they started with `get_`). This change makes
the constructors read more clearly as constructors and makes the getters
follow the API guidelines. It also expands the documentation to avoid
confusion.
@stphnt stphnt force-pushed the refactor-ascii-target branch from 5dc5ad9 to 1f749b9 Compare January 22, 2023 07:26
@stphnt stphnt merged commit 21114da into main Jan 22, 2023
@stphnt stphnt deleted the refactor-ascii-target branch January 22, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider refactoring ascii::Target
1 participant
0