cargo clippy
This commit is contained in:
parent
71afa56569
commit
edd6c9b362
@ -108,7 +108,7 @@ impl Entity {
|
|||||||
self.get_relation_enum_name()
|
self.get_relation_enum_name()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.chain(self_relations_reverse)
|
.chain(self_relations_reverse)
|
||||||
.chain(conjunct_related_names.into_iter())
|
.chain(conjunct_related_names)
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,6 +470,10 @@ impl DatabaseConnection {
|
|||||||
impl DbBackend {
|
impl DbBackend {
|
||||||
/// Check if the URI is the same as the specified database backend.
|
/// Check if the URI is the same as the specified database backend.
|
||||||
/// Returns true if they match.
|
/// 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 {
|
pub fn is_prefix_of(self, base_url: &str) -> bool {
|
||||||
let base_url_parsed = Url::parse(base_url).expect("Fail to parse database URL");
|
let base_url_parsed = Url::parse(base_url).expect("Fail to parse database URL");
|
||||||
match self {
|
match self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user