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

Simplifications and various cleanups #229

Merged
merged 6 commits into from
Nov 14, 2020
Merged

Simplifications and various cleanups #229

merged 6 commits into from
Nov 14, 2020

Conversation

mgeisler
Copy link
Owner

No description provided.

We now have a several bounds for the generic type parameters, so a
where clause can help make the signature more readable. This is
reflected both in the source and on docs.rs.
By adding

    unstable_features = true
    format_code_in_doc_comments = true

to a .rustfmt.toml file, we can get auto-formatted doctests. However,
several of our examples rely on visual alignment of lines before/after
wrapping, so here I've only applied the formatting that I liked.
This removes some complicated doctests with lots of setup. I believe
the coercions tested by them are already covered by other unit tests,
or by the type system itself.

I left the two tests which ensure that the documented output of
Options::new and Options::with_splitter match reality.
This is the default fill column in Emacs and I find the short lines
more readable than ~100 column wide lines.
@mgeisler mgeisler merged commit adf149b into master Nov 14, 2020
@mgeisler mgeisler deleted the simplifications branch January 30, 2021 16:48
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.

1 participant