diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-10-16 22:54:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-16 22:54:54 -0500 |
| commit | 4cef62e8e4aa04e44048eb67e5091c12a73d2a09 (patch) | |
| tree | 1c3b03bad262bdcab878cd42d445676290000bea /azalea-buf/src | |
| parent | 993914d175609e5d291e7caafc1983379642e7fe (diff) | |
| download | azalea-drasl-4cef62e8e4aa04e44048eb67e5091c12a73d2a09.tar.xz | |
Microsoft Authentication (#29)
* a
* try to do more work on auth signing (untested)
* well auth works when i remove the d= so
* auth stuff
* sessionserver stuff
* add auth in azalea-protocol/client
* caching*
refreshing microsoft auth tokens isn't implemented yet, also i haven't tested it
* how did i not notice that i had the code duplicated
* fix cache
* add refreshing msa token
* replace some printlns with log::trace
* auth works!
* Update main.rs
* fix clippy warnings
Diffstat (limited to 'azalea-buf/src')
| -rw-r--r-- | azalea-buf/src/write.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/azalea-buf/src/write.rs b/azalea-buf/src/write.rs index 9b50a1c4..e1f1ffb1 100644 --- a/azalea-buf/src/write.rs +++ b/azalea-buf/src/write.rs @@ -110,6 +110,13 @@ impl McBufWritable for String { } } + +impl McBufWritable for &str { + fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { + write_utf_with_len(buf, self, MAX_STRING_LENGTH.into()) + } +} + impl McBufWritable for u32 { fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { i32::write_into(&(*self as i32), buf) |
