Skip to content

Commit 3421745

Browse files
authored
chore: re-enabling module_name_repetitions lint (#2567)
* chore: re-enabling `module_name_repetitions` lint * chore: re-enabling `module_name_repetitions` - added some missing allow's
1 parent 1081ab0 commit 3421745

File tree

19 files changed

+87
-0
lines changed

19 files changed

+87
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ literal_string_with_formatting_args = "allow" # FIXME: Re-enable "warn" when MSR
8181
lossy_float_literal = "warn"
8282
mem_forget = "warn"
8383
mixed_read_write_in_expression = "warn"
84+
module_name_repetitions = "warn"
8485
multiple_crate_versions = "allow"
8586
multiple_inherent_impl = "warn"
8687
mutex_atomic = "warn"

neqo-bin/src/server/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
711
#![expect(
812
clippy::unwrap_used,
913
clippy::future_not_send,

neqo-common/src/qlog.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use std::{
813
cell::RefCell,
914
fmt::{self, Display},

neqo-common/src/tos.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use std::fmt::Debug;
813

914
use enum_map::Enum;

neqo-crypto/src/agent.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
711
#![expect(
812
clippy::unwrap_used,
913
reason = "Let's assume the use of `unwrap` was checked when the use of `unsafe` was reviewed."

neqo-crypto/src/hp.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use std::{
813
cell::RefCell,
914
fmt::{self, Debug},

neqo-http3/src/frames/reader.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
711
use std::fmt::Debug;
812

913
use neqo_common::{

neqo-qpack/src/decoder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use neqo_common::{qdebug, Header};
813
use neqo_transport::{Connection, StreamId};
914

neqo-qpack/src/encoder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use std::collections::{HashMap, HashSet, VecDeque};
813

914
use neqo_common::{qdebug, qerror, qlog::NeqoQlog, qtrace, Header};

neqo-qpack/src/huffman.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use crate::{
813
huffman_decode_helper::{huffman_decoder_root, HuffmanDecoderNode},
914
huffman_table::HUFFMAN_TABLE,

neqo-qpack/src/huffman_table.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
#[derive(Debug, Copy, Clone)]
813
pub struct HuffmanTableEntry {
914
pub len: u8,

neqo-qpack/src/reader.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use std::{mem, str};
813

914
use neqo_common::{qdebug, qerror};

neqo-transport/src/packet/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
// except according to those terms.
66

77
// Encoding and decoding packets off the wire.
8+
9+
#![allow(
10+
clippy::module_name_repetitions,
11+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
12+
)]
13+
814
use std::{
915
cmp::min,
1016
fmt,

neqo-transport/src/recovery/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
// Tracking of sent packets and detecting their loss.
88

9+
#![allow(
10+
clippy::module_name_repetitions,
11+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
12+
)]
13+
914
#[cfg(feature = "bench")]
1015
pub mod sent;
1116
#[cfg(not(feature = "bench"))]

neqo-transport/src/recv_stream.rs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
// Building a stream of ordered bytes to give the application from a series of
88
// incoming STREAM frames.
99

10+
#![allow(
11+
clippy::module_name_repetitions,
12+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
13+
)]
14+
1015
use std::{
1116
cell::RefCell,
1217
cmp::max,

neqo-transport/src/send_stream.rs

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
// Buffering data to send until it is acked.
88

9+
#![allow(
10+
clippy::module_name_repetitions,
11+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
12+
)]
13+
914
use std::{
1015
cell::RefCell,
1116
cmp::{max, min, Ordering},

neqo-transport/src/version.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
11+
712
use enum_map::Enum;
813
use neqo_common::qdebug;
914

test-fixture/src/header_protection.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
711
#![expect(clippy::missing_panics_doc, reason = "This is test code.")]
812

913
use std::ops::Range;

test-fixture/src/sim/connection.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7+
#![allow(
8+
clippy::module_name_repetitions,
9+
reason = "<https://github.com/mozilla/neqo/issues/2284#issuecomment-2782711813>"
10+
)]
711
#![expect(clippy::unwrap_used, reason = "This is test code.")]
812

913
use std::{

0 commit comments

Comments
 (0)