From 3c8aee3c09b8d8c9f9dd49f3ea91ac98bf095522 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Tue, 21 Feb 2023 12:52:14 +0530 Subject: [PATCH] Use base64::Engine instead of base64::decode Signed-off-by: baalajimaestro --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index da49b4a..b163f07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use actix_web::{ use mime::TEXT_HTML; use reqwest::{header::HeaderMap, Client}; use serde::{Deserialize, Serialize}; +use base64::{Engine, engine::general_purpose}; use std::env; use tera::{Context, Tera}; @@ -53,8 +54,7 @@ async fn paste_render(data: Data