cargo clippy

This commit is contained in:
Chris Tsang 2023-08-25 22:02:33 +01:00
parent 71afa56569
commit edd6c9b362
2 changed files with 5 additions and 1 deletions

View File

@ -108,7 +108,7 @@ impl Entity {
self.get_relation_enum_name()
.into_iter()
.chain(self_relations_reverse)
.chain(conjunct_related_names.into_iter())
.chain(conjunct_related_names)
.collect()
}

View File

@ -470,6 +470,10 @@ impl DatabaseConnection {
impl DbBackend {
/// Check if the URI is the same as the specified database backend.
/// Returns true if they match.
///
/// # Panics
///
/// Panics if `base_url` cannot be parsed as `Url`.
pub fn is_prefix_of(self, base_url: &str) -> bool {
let base_url_parsed = Url::parse(base_url).expect("Fail to parse database URL");
match self {