diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ use crate::solar::{dow, solar}; async fn text(r: &mut Response) -> Result<String> { match r.body() { ResponseBody::Body(bytes) => unsafe { - let bytes = transmute::<&Vec<u8>, &mut Vec<u8>>(bytes); + let bytes: &mut Vec<u8> = transmute(bytes); Ok(String::from_utf8_unchecked(take(bytes))) }, ResponseBody::Empty => Ok(String::new()), |
