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

io: Add (read|write)_f(32|64)[_le] methods #4022

Merged
merged 1 commit into from
Aug 4, 2021
Merged

io: Add (read|write)_f(32|64)[_le] methods #4022

merged 1 commit into from
Aug 4, 2021

Conversation

LinkTed
Copy link
Contributor

@LinkTed LinkTed commented Aug 3, 2021

The methods (read|write)_f(32|64)[_le] to Async(Read|Write)Ext.

Motivation

Now, it is possible to read and write floating types from an Async(Read|Write) type.

Solution

Add (read|write)_f(32|64)[_le] methods.

Fixes #3435.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-io Module: tokio/io labels Aug 3, 2021
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add these methods to tokio/tests/async_send_sync.rs.

The methods (read|write)_f(32|64)[_le] to Async(Read|Write)Ext.
@LinkTed
Copy link
Contributor Author

LinkTed commented Aug 4, 2021

@Darksonn Done

Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@LinkTed
Copy link
Contributor Author

LinkTed commented Aug 4, 2021

Locally it is running without errors and the new test does not fail.

@Darksonn
Copy link
Contributor

Darksonn commented Aug 4, 2021

I will look into the CI failure. It appears to be unrelated to your PR, and you don't need to worry about it. I restarted CI.

@Darksonn Darksonn merged commit 106bb94 into tokio-rs:master Aug 4, 2021
@LinkTed LinkTed deleted the issue/3435 branch August 4, 2021 11:47
@Darksonn Darksonn mentioned this pull request Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-io Module: tokio/io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider add (read/write)_f32/64_(/le) methods into AsyncReadExt and AsyncWriteExt?
2 participants