@@ -4,7 +4,7 @@ pub mod dev;
44pub mod launch;
55pub mod release;
66
7- use std:: { collections:: HashMap , path:: Path } ;
7+ use std:: { collections:: HashMap , path:: Path , sync :: Arc } ;
88
99use launch:: LaunchOptions ;
1010use serde:: { Deserialize , Serialize } ;
@@ -58,6 +58,8 @@ pub struct RuntimeArguments {
5858 is_release : bool ,
5959 is_pedantic : bool ,
6060 is_just : bool ,
61+
62+ explicit_lints : Arc < [ String ] > ,
6163}
6264
6365impl RuntimeArguments {
@@ -67,7 +69,7 @@ impl RuntimeArguments {
6769 }
6870
6971 #[ must_use]
70- pub const fn with_release ( self , is_release : bool ) -> Self {
72+ pub fn with_release ( self , is_release : bool ) -> Self {
7173 Self { is_release, ..self }
7274 }
7375
@@ -77,7 +79,7 @@ impl RuntimeArguments {
7779 }
7880
7981 #[ must_use]
80- pub const fn with_pedantic ( self , is_pedantic : bool ) -> Self {
82+ pub fn with_pedantic ( self , is_pedantic : bool ) -> Self {
8183 Self {
8284 is_pedantic,
8385 ..self
@@ -90,9 +92,22 @@ impl RuntimeArguments {
9092 }
9193
9294 #[ must_use]
93- pub const fn with_just ( self , is_just : bool ) -> Self {
95+ pub fn with_just ( self , is_just : bool ) -> Self {
9496 Self { is_just, ..self }
9597 }
98+
99+ #[ must_use]
100+ pub fn explicit_lints ( & self ) -> & [ String ] {
101+ & self . explicit_lints
102+ }
103+
104+ #[ must_use]
105+ pub fn with_explicit_lints ( self , explicit_lints : Vec < String > ) -> Self {
106+ Self {
107+ explicit_lints : explicit_lints. into ( ) ,
108+ ..self
109+ }
110+ }
96111}
97112
98113#[ allow( clippy:: module_name_repetitions) ]
0 commit comments