Skip to content

Commit

Permalink
allow dead code annotations
Browse files Browse the repository at this point in the history
Summary: some new dead code annotations thrown up by 1.78.0

Reviewed By: JakobDegen

Differential Revision: D57165902

fbshipit-source-id: 598e726f1d4afc955b44ea4f7e3974f58f1299f6
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed May 10, 2024
1 parent 97ca8ec commit 48b1097
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ mod tests {
use crate::Lines;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Msg(Lines);

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/components/blank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ mod tests {
use crate::Lines;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct EchoMsg(Lines);

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/components/bordering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ mod tests {
use crate::components::echo::Echo;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Msg(Lines);

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/components/bounding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ mod tests {
use crate::Span;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Msg(Lines);

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/components/padding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ mod tests {
use crate::Lines;

#[derive(Debug, AsRef)]
#[allow(dead_code)]
struct Msg(Lines);

#[test]
Expand Down
3 changes: 3 additions & 0 deletions src/components/splitting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,14 @@ mod tests {
use crate::Lines;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Echo1(Lines);
#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Echo2(Lines);

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Echo3(Lines);

mod horizontal {
Expand Down
3 changes: 0 additions & 3 deletions src/content/lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,6 @@ impl IntoIterator for Lines {

#[cfg(test)]
mod tests {
use crossterm::style::Attribute;
use crossterm::style::Color;

use super::*;

#[test]
Expand Down
2 changes: 0 additions & 2 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ impl SuperConsoleOutput for NonBlockingSuperConsoleOutput {

#[cfg(test)]
mod tests {
use crossbeam_channel::Receiver;

use super::*;

/// A test writer that just sends into a channel. Lets us block / unblock the output to test
Expand Down
2 changes: 1 addition & 1 deletion src/superconsole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ mod tests {
use crate::testing::frame_contains;
use crate::testing::test_console;
use crate::testing::SuperConsoleTestingExt;
use crate::Lines;

#[derive(AsRef, Debug)]
#[allow(dead_code)]
struct Msg(Lines);

#[test]
Expand Down

0 comments on commit 48b1097

Please sign in to comment.