diff --git a/cl-ast/src/lib.rs b/cl-ast/src/lib.rs index 3786e84..10ea63e 100644 --- a/cl-ast/src/lib.rs +++ b/cl-ast/src/lib.rs @@ -9,6 +9,7 @@ //! - [AssignKind], [BinaryKind], and [UnaryKind] operators //! - [Ty] and [TyKind]: Type qualifiers //! - [Path]: Path expressions +#![warn(clippy::all)] #![feature(decl_macro)] use cl_structures::span::*; diff --git a/cl-interpret/src/lib.rs b/cl-interpret/src/lib.rs index b859816..7d2fd6d 100644 --- a/cl-interpret/src/lib.rs +++ b/cl-interpret/src/lib.rs @@ -1,5 +1,5 @@ -//! Walks a Conlang AST, interpreting it as a program - +//! Walks a Conlang AST, interpreting it as a program. +#![warn(clippy::all)] #![feature(decl_macro)] use env::Environment; diff --git a/cl-lexer/src/lib.rs b/cl-lexer/src/lib.rs index ad3935a..e952a24 100644 --- a/cl-lexer/src/lib.rs +++ b/cl-lexer/src/lib.rs @@ -1,4 +1,5 @@ //! Converts a text file into tokens +#![warn(clippy::all)] #![feature(decl_macro)] use cl_structures::span::Loc; use cl_token::*; diff --git a/cl-parser/src/lib.rs b/cl-parser/src/lib.rs index e4e7524..4c735ef 100644 --- a/cl-parser/src/lib.rs +++ b/cl-parser/src/lib.rs @@ -3,6 +3,7 @@ //! For the full grammar, see [grammar.ebnf][1] //! //! [1]: https://git.soft.fish/j/Conlang/src/branch/main/grammar.ebnf +#![warn(clippy::all)] #![feature(decl_macro)] pub use parser::Parser; diff --git a/cl-repl/src/lib.rs b/cl-repl/src/lib.rs index 0270c6a..7fb1c06 100644 --- a/cl-repl/src/lib.rs +++ b/cl-repl/src/lib.rs @@ -3,6 +3,7 @@ //! # TODO //! - [ ] Readline-like line editing //! - [ ] Raw mode? +#![warn(clippy::all)] pub mod args { use crate::cli::Mode; diff --git a/cl-structures/src/lib.rs b/cl-structures/src/lib.rs index 11b63fa..281d1bf 100644 --- a/cl-structures/src/lib.rs +++ b/cl-structures/src/lib.rs @@ -1,6 +1,7 @@ //! # Universally useful structures //! - [Span](struct@span::Span): Stores a start and end [Loc](struct@span::Loc) //! - [Loc](struct@span::Loc): Stores the index in a stream +#![warn(clippy::all)] pub mod span { //! - [struct@Span]: Stores the start and end [struct@Loc] of a notable AST node diff --git a/cl-token/src/lib.rs b/cl-token/src/lib.rs index fd5f812..e371c68 100644 --- a/cl-token/src/lib.rs +++ b/cl-token/src/lib.rs @@ -1,6 +1,7 @@ //! # Token //! //! Stores a component of a file as a [Type], some [Data], and a line and column number +#![warn(clippy::all)] #![feature(decl_macro)] pub mod token;