Skip to content

Conversation

@paolobarbolini
Copy link
Contributor

Motivation

std::io::Read, std::io::Write and std::io::Seek use the std::io::Result<T> type. So does tokio::io::AsyncRead. tokio::io::AsyncWrite instead follows the manual approach of std::result::Result<T, io::Error>.

This is very annoying because when implementing AsyncWrite with the help of rust-analyzer, this inconsistency is then propagated to the user's code.

Solution

This changes AsyncWrite to use std::io::Result.

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