refactor(http): migrate to tauri's new resource table (#834)

* refactor(http): migrate to tauri's new resource table

* fmt

* change file
This commit is contained in:
Amr Bashir
2024-01-02 21:55:57 +02:00
committed by GitHub
parent ea8eadce85
commit ae0cb92438
6 changed files with 68 additions and 75 deletions
+2 -4
View File
@@ -5,8 +5,6 @@
use serde::{Serialize, Serializer};
use url::Url;
use crate::RequestId;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error(transparent)]
@@ -39,8 +37,8 @@ pub enum Error {
DataUrlError,
#[error("failed to decode data url into bytes")]
DataUrlDecodeError,
#[error("invalid request id: {0}")]
InvalidRequestId(RequestId),
#[error(transparent)]
Tauri(#[from] tauri::Error),
#[error(transparent)]
Utf8(#[from] std::string::FromUtf8Error),
}