Skip to content

Commit f2f58d4

Browse files
committed
refactor: remove enum variants nothing constructs
ConfigErrorKind::Missing and ::InvalidField and SqlFileRole::Yaml are never constructed or matched; XSB077 reported them.
1 parent 1799171 commit f2f58d4

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎crates/sqlbuild-config/src/errors.rs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ pub enum ConfigErrorKind {
99
Construct,
1010
/// The document uses a feature the native reader leaves to Python.
1111
Unsupported,
12-
/// A required file does not exist.
13-
Missing,
14-
/// A field SQLBuild reads has the wrong type or an invalid value.
15-
InvalidField,
1612
}
1713

1814
/// A configuration failure, at its one-based line and column where known.

‎crates/sqlbuild-refactor/src/refactoring/models.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pub enum SqlFileRole {
5151
Hook,
5252
Function,
5353
Schema,
54-
Yaml,
5554
}
5655

5756
/// One requested rename or move.

0 commit comments

Comments
 (0)