You've already forked flix
Update for rust 1.100
This commit is contained in:
Generated
+190
-183
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -6,15 +6,12 @@ members = ["crates/*"]
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.94"
|
rust-version = "1.94"
|
||||||
license-file = "LICENSE.md"
|
license-file = "LICENSE.md"
|
||||||
publish = false
|
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
flix = { path = "crates/flix", version = "=0.1.1", default-features = false }
|
flix = { path = "crates/flix", version = "=0.1.1", default-features = false }
|
||||||
flix-cli = { path = "crates/cli", version = "=0.1.1", default-features = false }
|
|
||||||
flix-db = { path = "crates/db", version = "=0.1.1", default-features = false }
|
flix-db = { path = "crates/db", version = "=0.1.1", default-features = false }
|
||||||
flix-fs = { path = "crates/fs", version = "=0.1.1", default-features = false }
|
flix-fs = { path = "crates/fs", version = "=0.1.1", default-features = false }
|
||||||
flix-model = { path = "crates/model", version = "=0.1.1", default-features = false }
|
flix-model = { path = "crates/model", version = "=0.1.1", default-features = false }
|
||||||
flix-mux = { path = "crates/cli-mux", version = "=0.1.1", default-features = false }
|
|
||||||
flix-tmdb = { path = "crates/tmdb", version = "=0.1.1", default-features = false }
|
flix-tmdb = { path = "crates/tmdb", version = "=0.1.1", default-features = false }
|
||||||
|
|
||||||
anyhow = { version = "^1.0.87", default-features = false }
|
anyhow = { version = "^1.0.87", default-features = false }
|
||||||
@@ -404,6 +401,7 @@ rust_2024_compatibility = { level = "deny", priority = -2 }
|
|||||||
unknown_or_malformed_diagnostic_attributes = { level = "deny", priority = -2 }
|
unknown_or_malformed_diagnostic_attributes = { level = "deny", priority = -2 }
|
||||||
unused = { level = "warn", priority = -3 }
|
unused = { level = "warn", priority = -3 }
|
||||||
|
|
||||||
|
aligned_fields_in_packed = "deny"
|
||||||
ambiguous_glob_reexports = "warn"
|
ambiguous_glob_reexports = "warn"
|
||||||
ambiguous_negative_literals = "deny"
|
ambiguous_negative_literals = "deny"
|
||||||
ambiguous_wide_pointer_comparisons = "warn"
|
ambiguous_wide_pointer_comparisons = "warn"
|
||||||
@@ -482,6 +480,7 @@ mixed_script_confusables = "warn"
|
|||||||
mutable_transmutes = "deny"
|
mutable_transmutes = "deny"
|
||||||
named_arguments_used_positionally = "warn"
|
named_arguments_used_positionally = "warn"
|
||||||
named_asm_labels = "deny"
|
named_asm_labels = "deny"
|
||||||
|
never_type_fallback_flowing_into_unsafe = "deny"
|
||||||
no_mangle_const_items = "deny"
|
no_mangle_const_items = "deny"
|
||||||
non_ascii_idents = "deny"
|
non_ascii_idents = "deny"
|
||||||
non_contiguous_range_endpoints = "warn"
|
non_contiguous_range_endpoints = "warn"
|
||||||
@@ -546,6 +545,7 @@ while_true = "warn"
|
|||||||
# deprecated_llvm_intrinsic = "warn"
|
# deprecated_llvm_intrinsic = "warn"
|
||||||
# duplicate_tools = "deny"
|
# duplicate_tools = "deny"
|
||||||
# implicit_provenance_casts = "deny"
|
# implicit_provenance_casts = "deny"
|
||||||
|
# ineffective_unstable_reexports = "deny"
|
||||||
# malformed_diagnostic_filters = "warn"
|
# malformed_diagnostic_filters = "warn"
|
||||||
# multiple_supertrait_upcastable = "warn"
|
# multiple_supertrait_upcastable = "warn"
|
||||||
# must_not_suspend = "warn"
|
# must_not_suspend = "warn"
|
||||||
@@ -562,6 +562,7 @@ broken_footnote = "warn"
|
|||||||
broken_intra_doc_links = "warn"
|
broken_intra_doc_links = "warn"
|
||||||
invalid_codeblock_attributes = "warn"
|
invalid_codeblock_attributes = "warn"
|
||||||
invalid_html_tags = "warn"
|
invalid_html_tags = "warn"
|
||||||
|
invalid_markdown_table = "warn"
|
||||||
invalid_rust_codeblocks = "warn"
|
invalid_rust_codeblocks = "warn"
|
||||||
missing_crate_level_docs = "warn"
|
missing_crate_level_docs = "warn"
|
||||||
private_doc_tests = "warn"
|
private_doc_tests = "warn"
|
||||||
|
|||||||
@@ -228,8 +228,8 @@ fn find_stream_index(file: &MediaFile, selector: &Selector) -> Option<usize> {
|
|||||||
},
|
},
|
||||||
StreamType::Subtitle => match &selector.matcher {
|
StreamType::Subtitle => match &selector.matcher {
|
||||||
Matcher::Index(index) => (file.streams.subtitle.len() > *index).then_some(*index),
|
Matcher::Index(index) => (file.streams.subtitle.len() > *index).then_some(*index),
|
||||||
Matcher::Language(language) => {
|
Matcher::Language(language) => file
|
||||||
file.streams
|
.streams
|
||||||
.subtitle
|
.subtitle
|
||||||
.iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
@@ -238,17 +238,18 @@ fn find_stream_index(file: &MediaFile, selector: &Selector) -> Option<usize> {
|
|||||||
c.title()
|
c.title()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_ascii_lowercase()
|
.to_ascii_lowercase()
|
||||||
.contains("forced") == needs_forced
|
.contains("forced")
|
||||||
|
== needs_forced
|
||||||
})
|
})
|
||||||
.filter(|(_, c)| {
|
.filter(|(_, c)| {
|
||||||
c.title()
|
c.title()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_ascii_lowercase()
|
.to_ascii_lowercase()
|
||||||
.contains("sdh") == needs_sdh
|
.contains("sdh")
|
||||||
|
== needs_sdh
|
||||||
})
|
})
|
||||||
.map(|(i, _)| i)
|
.map(|(i, _)| i)
|
||||||
.next()
|
.next(),
|
||||||
}
|
|
||||||
Matcher::Codec(codec) => file
|
Matcher::Codec(codec) => file
|
||||||
.streams
|
.streams
|
||||||
.subtitle
|
.subtitle
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ pub type Item = crate::Item<generic::Scanner>;
|
|||||||
|
|
||||||
/// The scanner for collections.
|
/// The scanner for collections.
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
#[expect(clippy::exhaustive_enums, reason = "unlikely to change")]
|
#[expect(clippy::exhaustive_enums, reason = "unlikely to change")]
|
||||||
pub enum Scanner {}
|
pub enum Scanner {}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ pub use seamantic::model::id::SeaOrmRepr as RawId;
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Library {}
|
pub enum Library {}
|
||||||
/// Type alias for a library ID.
|
/// Type alias for a library ID.
|
||||||
pub type LibraryId = Id<Library>;
|
pub type LibraryId = Id<Library>;
|
||||||
@@ -17,6 +18,7 @@ pub type LibraryId = Id<Library>;
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Collection {}
|
pub enum Collection {}
|
||||||
/// Type alias for a collection ID.
|
/// Type alias for a collection ID.
|
||||||
pub type CollectionId = Id<Collection>;
|
pub type CollectionId = Id<Collection>;
|
||||||
@@ -24,6 +26,7 @@ pub type CollectionId = Id<Collection>;
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Movie {}
|
pub enum Movie {}
|
||||||
/// Type alias for a movie ID.
|
/// Type alias for a movie ID.
|
||||||
pub type MovieId = Id<Movie>;
|
pub type MovieId = Id<Movie>;
|
||||||
@@ -31,6 +34,7 @@ pub type MovieId = Id<Movie>;
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Show {}
|
pub enum Show {}
|
||||||
/// Type alias for a show ID.
|
/// Type alias for a show ID.
|
||||||
pub type ShowId = Id<Show>;
|
pub type ShowId = Id<Show>;
|
||||||
|
|||||||
@@ -199,6 +199,7 @@ mod tests {
|
|||||||
impl ActiveModelBehavior for ActiveModel {}
|
impl ActiveModelBehavior for ActiveModel {}
|
||||||
|
|
||||||
#[derive(Debug, EnumIter, DeriveRelation)]
|
#[derive(Debug, EnumIter, DeriveRelation)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "no relations at the moment")]
|
||||||
enum Relation {}
|
enum Relation {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,8 +213,9 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[derive(Debug, Clone, Copy)]
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Collection {}
|
pub enum Collection {}
|
||||||
/// Type alias for a collection ID.
|
/// Type alias for a collection ID.
|
||||||
pub type CollectionId = Id<Collection>;
|
pub type CollectionId = Id<Collection>;
|
||||||
@@ -235,8 +237,9 @@ impl TryFrom<flix_model::id::CollectionId> for CollectionId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[derive(Debug, Clone, Copy)]
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Movie {}
|
pub enum Movie {}
|
||||||
/// Type alias for a movie ID.
|
/// Type alias for a movie ID.
|
||||||
pub type MovieId = Id<Movie>;
|
pub type MovieId = Id<Movie>;
|
||||||
@@ -258,8 +261,9 @@ impl TryFrom<flix_model::id::MovieId> for MovieId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[derive(Debug, Clone, Copy)]
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
#[expect(clippy::empty_enums, reason = "support rust <1.100")]
|
||||||
pub enum Show {}
|
pub enum Show {}
|
||||||
/// Type alias for a show ID.
|
/// Type alias for a show ID.
|
||||||
pub type ShowId = Id<Show>;
|
pub type ShowId = Id<Show>;
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.99"
|
channel = "1.100"
|
||||||
|
|||||||
Reference in New Issue
Block a user