Skip to content

Commit 4009a13

Browse files
committed
impl block
1 parent 86319a2 commit 4009a13

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/ty_python_semantic/src/types/subscript.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(crate) struct SubscriptError<'db> {
3232
}
3333

3434
#[derive(Debug)]
35-
pub(crate) enum SubscriptErrorKind<'db> {
35+
enum SubscriptErrorKind<'db> {
3636
/// An index is out of bounds for a literal tuple/string/bytes subscript.
3737
IndexOutOfBounds {
3838
kind: &'static str,
@@ -81,14 +81,14 @@ pub(crate) enum SubscriptErrorKind<'db> {
8181
}
8282

8383
impl<'db> SubscriptError<'db> {
84-
pub(super) fn new(result_ty: Type<'db>, error: SubscriptErrorKind<'db>) -> Self {
84+
fn new(result_ty: Type<'db>, error: SubscriptErrorKind<'db>) -> Self {
8585
Self {
8686
result_ty,
8787
errors: vec![error],
8888
}
8989
}
9090

91-
pub(super) fn with_errors(result_ty: Type<'db>, errors: Vec<SubscriptErrorKind<'db>>) -> Self {
91+
fn with_errors(result_ty: Type<'db>, errors: Vec<SubscriptErrorKind<'db>>) -> Self {
9292
Self { result_ty, errors }
9393
}
9494

@@ -253,7 +253,7 @@ impl<'db> SubscriptErrorKind<'db> {
253253
}
254254
}
255255

256-
pub(super) fn map_union_subscript<'db, F>(
256+
fn map_union_subscript<'db, F>(
257257
db: &'db dyn Db,
258258
union: UnionType<'db>,
259259
mut map_fn: F,

0 commit comments

Comments
 (0)