Skip to content

Commit 15bc9ed

Browse files
committed
Formatting
1 parent dfc4aff commit 15bc9ed

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

crates/ty_python_semantic/src/types/diagnostic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,6 @@ declare_lint! {
894894
}
895895
}
896896

897-
898897
declare_lint! {
899898
/// ## What it does
900899
/// Checks for type guard functions without

crates/ty_python_semantic/src/types/infer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,7 +5491,7 @@ impl<'db> TypeInferenceBuilder<'db> {
54915491
.report_lint(&INVALID_TYPE_GUARD_CALL, arguments)
54925492
{
54935493
builder.into_diagnostic("Type guard call does not have a target");
5494-
};
5494+
}
54955495
None
54965496
}
54975497
Some(ast::Expr::Name(ast::ExprName { id, .. })) => {
@@ -5506,7 +5506,7 @@ impl<'db> TypeInferenceBuilder<'db> {
55065506
self.context.report_lint(&INVALID_TYPE_GUARD_CALL, expr)
55075507
{
55085508
builder.into_diagnostic("Type guard call target is not a symbol");
5509-
};
5509+
}
55105510
None
55115511
}
55125512
};

crates/ty_python_semantic/src/types/type_ordering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub(super) fn union_or_intersection_elements_ordering<'db>(
126126
(Type::SubclassOf(_), _) => Ordering::Less,
127127
(_, Type::SubclassOf(_)) => Ordering::Greater,
128128

129-
(Type::TypeIs(left), Type::TypeIs(right)) => typeis_ordering(db, left, right),
129+
(Type::TypeIs(left), Type::TypeIs(right)) => typeis_ordering(db, *left, *right),
130130
(Type::TypeIs(_), _) => Ordering::Less,
131131
(_, Type::TypeIs(_)) => Ordering::Greater,
132132

@@ -395,7 +395,7 @@ fn dynamic_elements_ordering(left: DynamicType, right: DynamicType) -> Ordering
395395
/// * Boundness: Unbound precedes bound
396396
/// * Symbol name: String comparison
397397
/// * Guarded type: [`union_or_intersection_elements_ordering`]
398-
fn typeis_ordering(db: &dyn Db, left: &TypeIsType, right: &TypeIsType) -> Ordering {
398+
fn typeis_ordering(db: &dyn Db, left: TypeIsType, right: TypeIsType) -> Ordering {
399399
let (left_ty, right_ty) = (left.ty(db), right.ty(db));
400400

401401
match (left.symbol_info(db), right.symbol_info(db)) {

0 commit comments

Comments
 (0)