File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,10 @@ mod tests {
118118 constants:: test:: ENCRYPTION_KEY ,
119119 ) ;
120120 let key = get_encryption_key ( ) ;
121-
121+
122122 assert_eq ! ( key. as_slice( ) . len( ) , constants:: env:: ENCRYPTION_KEY_LENGTH ) ;
123123 assert_eq ! ( key. as_slice( ) , constants:: test:: ENCRYPTION_KEY . as_bytes( ) ) ;
124-
124+
125125 std:: env:: remove_var ( constants:: env:: ENCRYPTION_KEY ) ;
126126 }
127127
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ use rocket::{Request, Response};
77
88/// A type alias for API results, which can either be a successful response of type `R`
99/// or an [`ApiError`]. Type `R` **must** implement the [`Serialize`] trait.
10- ///
11- /// The default type for `R` is [`ApiResponse`].
10+ ///
11+ /// The default type for `R` is [`ApiResponse`].
1212/// This type should be used when `R` is returned by a route handler.
1313pub ( crate ) type ApiResult < R = ApiResponse > = Result < R , ApiError > ;
1414
You can’t perform that action at this time.
0 commit comments