@@ -66,7 +66,6 @@ impl<T: fmt::Debug> Res<T> {
6666 /// # Panics
6767 ///
6868 /// If there are too many errors, a buffer overflow occurs
69- #[ inline]
7069 pub fn as_displayed_errors ( & self , files : & [ ( String , & str ) ] , err_type : & str ) -> String {
7170 display_errors ( & self . errors , files, err_type)
7271 . expect ( "Buffer overflow, failed to fetch errors" )
@@ -83,7 +82,6 @@ impl<T: fmt::Debug> Res<T> {
8382 /// ```ignore
8483 /// assert!(Res::from_errs(vec![]).errors_empty() == true);
8584 /// ```
86- #[ inline]
8785 pub const fn errors_empty ( & self ) -> bool {
8886 self . errors . is_empty ( )
8987 }
@@ -117,9 +115,8 @@ impl<T: fmt::Debug> Res<T> {
117115 /// # Panics
118116 ///
119117 /// If there is at least one error of level `Failure`.
120- #[ inline]
121118 #[ coverage( off) ]
122- #[ expect( clippy:: print_stderr) ]
119+ #[ expect( clippy:: print_stderr, reason = "goal of function" ) ]
123120 pub fn unwrap_or_display ( self , files : & [ ( String , & str ) ] , err_type : & str ) -> T {
124121 eprint ! ( "{}" , self . as_displayed_errors( files, err_type) ) ;
125122 #[ cfg( feature = "debug" ) ]
@@ -135,7 +132,6 @@ impl<T: fmt::Debug> Res<T> {
135132}
136133
137134impl < T : Default > From < CompileError > for Res < T > {
138- #[ inline]
139135 fn from ( err : CompileError ) -> Self {
140136 Self {
141137 result : T :: default ( ) ,
@@ -145,14 +141,12 @@ impl<T: Default> From<CompileError> for Res<T> {
145141}
146142
147143impl < T > From < ( T , Vec < CompileError > ) > for Res < T > {
148- #[ inline]
149144 fn from ( ( result, errors) : ( T , Vec < CompileError > ) ) -> Self {
150145 Self { errors, result }
151146 }
152147}
153148
154149impl < T > From < T > for Res < T > {
155- #[ inline]
156150 fn from ( value : T ) -> Self {
157151 Self {
158152 result : value,
@@ -162,7 +156,6 @@ impl<T> From<T> for Res<T> {
162156}
163157
164158impl < T : Default + fmt:: Debug > ops:: FromResidual < Vec < CompileError > > for Res < T > {
165- #[ inline]
166159 fn from_residual ( residual : Vec < CompileError > ) -> Self {
167160 Self {
168161 errors : residual,
@@ -172,7 +165,6 @@ impl<T: Default + fmt::Debug> ops::FromResidual<Vec<CompileError>> for Res<T> {
172165}
173166
174167impl < T : Default > ops:: FromResidual < Result < convert:: Infallible , CompileError > > for Res < T > {
175- #[ inline]
176168 #[ coverage( off) ]
177169 fn from_residual ( residual : Result < convert:: Infallible , CompileError > ) -> Self {
178170 match residual {
@@ -186,7 +178,6 @@ impl<T: Default + fmt::Debug> ops::Try for Res<T> {
186178 type Output = T ;
187179 type Residual = Vec < CompileError > ;
188180
189- #[ inline]
190181 fn branch ( self ) -> ops:: ControlFlow < Self :: Residual , Self :: Output > {
191182 if self . errors . is_empty ( ) {
192183 ops:: ControlFlow :: Continue ( self . result )
@@ -195,7 +186,6 @@ impl<T: Default + fmt::Debug> ops::Try for Res<T> {
195186 }
196187 }
197188
198- #[ inline]
199189 #[ coverage( off) ]
200190 fn from_output ( output : Self :: Output ) -> Self {
201191 Self :: from ( output)
0 commit comments