diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-09-02 12:11:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-02 12:11:14 -0500 |
| commit | cfb190d00c70f1b09789e23f89a3c67840e0fd87 (patch) | |
| tree | 9bdc021943753d60bf437526c4c294275eae13ac /azalea-chat/src | |
| parent | 32458d743f757da3193717fe5554f490703640c0 (diff) | |
| download | azalea-drasl-cfb190d00c70f1b09789e23f89a3c67840e0fd87.tar.xz | |
get rid of Readable & Writable (#21)
Diffstat (limited to 'azalea-chat/src')
| -rwxr-xr-x | azalea-chat/src/component.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 291baa16..9c71b9df 100755 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -282,7 +282,7 @@ impl McBufWritable for Component { // where // R: AsyncRead + std::marker::Unpin + std::marker::Send, // { - // let string = buf.read_utf().await?; + // let string = String::read_from(buf).await?; // let json: serde_json::Value = serde_json::from_str(string.as_str()) // .map_err(|e| "Component isn't valid JSON".to_string())?; // let component = Component::deserialize(json).map_err(|e| e.to_string())?; |
