style(ast): move crate doc comment to top of file (#6890)

Docs are more important than clippy, so docs go first!
This commit is contained in:
overlookmotel 2024-10-25 14:31:35 +00:00
parent 6eeb0e6385
commit 262b2ed1ce

View file

@ -1,8 +1,3 @@
// TODO: I'm not sure if it is a but or intentional but clippy needs this allowed both on this
// module and the generated one.
#![allow(clippy::self_named_module_files)]
#![warn(missing_docs)]
//! # Oxc AST (Abstract Syntax Tree) Nodes
//!
//! Supports JavaScript, TypeScript and JSX.
@ -44,6 +39,11 @@
//! [tsc]: <https://github.com/microsoft/TypeScript>
//! [`Traverse`]: <https://github.com/oxc-project/oxc/tree/main/crates/oxc_traverse>
// TODO: I'm not sure if it is a but or intentional but clippy needs this allowed both on this
// module and the generated one.
#![allow(clippy::self_named_module_files)]
#![warn(missing_docs)]
#[cfg(feature = "serialize")]
mod serialize;