Skip to content

Commit

Permalink
refactor(list): split up list.rs into smaller modules (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka authored Jul 18, 2024
1 parent 7e1bab0 commit e81663b
Show file tree
Hide file tree
Showing 11 changed files with 2,360 additions and 2,296 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

# we often split up a module into multiple files with the main type in a file named after the
# module, so we want to allow this pattern
module_inception = "allow"

# nursery or restricted
as_underscore = "warn"
deref_by_slicing = "warn"
Expand Down
1 change: 0 additions & 1 deletion src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! A module for the [`Buffer`] and [`Cell`] types.
mod assert;
#[allow(clippy::module_inception)]
mod buffer;
mod cell;

Expand Down
1 change: 0 additions & 1 deletion src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod alignment;
mod constraint;
mod direction;
mod flex;
#[allow(clippy::module_inception)]
mod layout;
mod margin;
mod position;
Expand Down
1 change: 0 additions & 1 deletion src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
//! [`Buffer`]: crate::buffer::Buffer
mod frame;
#[allow(clippy::module_inception)]
mod terminal;
mod viewport;

Expand Down
1 change: 0 additions & 1 deletion src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ pub use masked::Masked;
mod span;
pub use span::{Span, ToSpan};

#[allow(clippy::module_inception)]
mod text;
pub use text::{Text, ToText};
Loading

0 comments on commit e81663b

Please sign in to comment.