diff --git a/Cargo.toml b/Cargo.toml index 92cddee4b9438306e41016f64391bb99340d877e..49845c5eff39760640fafbd7ee110c115f5ef88f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -492,5 +492,10 @@ non_canonical_partial_ord_impl = "allow" reversed_empty_ranges = "allow" type_complexity = "allow" +[workspace.lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(gles)' # used in gpui +] } + [workspace.metadata.cargo-machete] ignored = ["bindgen", "cbindgen", "prost_build", "serde"] diff --git a/crates/collab/src/db/queries/channels.rs b/crates/collab/src/db/queries/channels.rs index 502fcd59c56900adfd43f8fe1abea3026e659538..966e52811ab38d2249c74c37724c87dc05888967 100644 --- a/crates/collab/src/db/queries/channels.rs +++ b/crates/collab/src/db/queries/channels.rs @@ -713,7 +713,7 @@ impl Database { .find_also_related(user::Entity) .filter(channel_member::Column::ChannelId.eq(channel.root_id())); - if cfg!(any(test, sqlite)) && self.pool.get_database_backend() == DbBackend::Sqlite { + if cfg!(any(test, feature = "sqlite")) && self.pool.get_database_backend() == DbBackend::Sqlite { query = query.filter(Expr::cust_with_values( "UPPER(github_login) LIKE ?", [Self::fuzzy_like_string(&filter.to_uppercase())], diff --git a/crates/languages/Cargo.toml b/crates/languages/Cargo.toml index 1661586c9979e0707e90c060c5980e495d4c1fee..96df7ef410faef1ec04740c69e16b79ddcbed0b8 100644 --- a/crates/languages/Cargo.toml +++ b/crates/languages/Cargo.toml @@ -8,6 +8,9 @@ license = "GPL-3.0-or-later" [lints] workspace = true +[features] +test-support = [] + [dependencies] anyhow.workspace = true async-compression.workspace = true diff --git a/crates/markdown/src/parser.rs b/crates/markdown/src/parser.rs index 131a614ef805179e02a8f1203181395aa58c66a8..3626b5e2a45356ea2241d3d16fcdc4e24cdd6db9 100644 --- a/crates/markdown/src/parser.rs +++ b/crates/markdown/src/parser.rs @@ -144,7 +144,6 @@ pub enum MarkdownTag { /// A footnote definition. The value contained is the footnote's label by which it can /// be referred to. - #[cfg_attr(feature = "serde", serde(borrow))] FootnoteDefinition(SharedString), /// A table. Contains a vector describing the text-alignment for each of its columns.