diff --git a/uniffi_bindgen/src/bindings/mod.rs b/uniffi_bindgen/src/bindings/mod.rs index 9f91e784f5..ac9b8a25f6 100644 --- a/uniffi_bindgen/src/bindings/mod.rs +++ b/uniffi_bindgen/src/bindings/mod.rs @@ -89,7 +89,6 @@ impl TryFrom for TargetLanguage { } } - #[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct Config { pub doc_comments: Option, diff --git a/uniffi_bindgen/src/interface/record.rs b/uniffi_bindgen/src/interface/record.rs index 54991fbb0f..9eb6d0f46e 100644 --- a/uniffi_bindgen/src/interface/record.rs +++ b/uniffi_bindgen/src/interface/record.rs @@ -152,7 +152,6 @@ impl AsType for Field { } } - impl TryFrom for Field { type Error = anyhow::Error; diff --git a/uniffi_docs/src/lib.rs b/uniffi_docs/src/lib.rs index 674fd096a7..b4f3fa7266 100644 --- a/uniffi_docs/src/lib.rs +++ b/uniffi_docs/src/lib.rs @@ -4,10 +4,10 @@ use std::{collections::HashMap, fs::read_to_string, path::Path, str::FromStr}; -use uniffi_meta::Checksum; use anyhow::Result; use pulldown_cmark::{Event, HeadingLevel::H1, Parser, Tag}; use syn::Attribute; +use uniffi_meta::Checksum; /// Function documentation. #[derive(Debug, Clone, PartialEq, Eq, Checksum)] diff --git a/uniffi_meta/src/lib.rs b/uniffi_meta/src/lib.rs index 8dcb6e74c6..58f31e3887 100644 --- a/uniffi_meta/src/lib.rs +++ b/uniffi_meta/src/lib.rs @@ -2,7 +2,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use std::{collections::{BTreeMap, HashMap}, hash::Hasher}; +use std::{ + collections::{BTreeMap, HashMap}, + hash::Hasher, +}; pub use uniffi_checksum_derive::Checksum; mod ffi_names;