Skip to content

Commit 994344d

Browse files
Fixed clippy code smell
1 parent c317547 commit 994344d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/ast/spans.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,6 +2351,24 @@ impl Spanned for AlterTable {
23512351
}
23522352
}
23532353

2354+
impl Spanned for CreateOperator {
2355+
fn span(&self) -> Span {
2356+
Span::empty()
2357+
}
2358+
}
2359+
2360+
impl Spanned for CreateOperatorFamily {
2361+
fn span(&self) -> Span {
2362+
Span::empty()
2363+
}
2364+
}
2365+
2366+
impl Spanned for CreateOperatorClass {
2367+
fn span(&self) -> Span {
2368+
Span::empty()
2369+
}
2370+
}
2371+
23542372
#[cfg(test)]
23552373
pub mod tests {
23562374
use crate::dialect::{Dialect, GenericDialect, SnowflakeDialect};
@@ -2542,21 +2560,3 @@ ALTER TABLE users
25422560
assert_eq!(stmt_span.end, (4, 11).into());
25432561
}
25442562
}
2545-
2546-
impl Spanned for CreateOperator {
2547-
fn span(&self) -> Span {
2548-
Span::empty()
2549-
}
2550-
}
2551-
2552-
impl Spanned for CreateOperatorFamily {
2553-
fn span(&self) -> Span {
2554-
Span::empty()
2555-
}
2556-
}
2557-
2558-
impl Spanned for CreateOperatorClass {
2559-
fn span(&self) -> Span {
2560-
Span::empty()
2561-
}
2562-
}

0 commit comments

Comments
 (0)