Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mydayyy committed Jul 26, 2024
1 parent ff1dfca commit b2bb0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/privatebin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ pub type DecryptedCommentsMap = HashMap<String, DecryptedComment>;
/// comment.id -> [children comment.id]
pub type CommentsAdjacencyMap = HashMap<String, Vec<String>>;


#[derive(Deserialize, Debug, Serialize, Clone)]
#[cfg_attr(feature = "uniffi", derive(uniffi::Object))]
pub struct PostCommentResponse {
Expand Down
4 changes: 2 additions & 2 deletions src/uniffi_custom_types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::path::PathBuf;
use reqwest::Url;
use std::path::PathBuf;

use crate::UniffiCustomTypeConverter;
// Custom UniFFI types
Expand All @@ -11,7 +11,7 @@ impl UniffiCustomTypeConverter for Url {
type Builtin = String;

fn into_custom(val: Self::Builtin) -> uniffi::Result<Self> {
val.parse::<Url>().map_err(|e | {e.into()})
val.parse::<Url>().map_err(|e| e.into())
}

fn from_custom(obj: Self) -> Self::Builtin {
Expand Down

0 comments on commit b2bb0f9

Please sign in to comment.