Skip to content

Commit 6467af5

Browse files
committed
annotated SEARCH_ARGUMENTS and fixed typo
Signed-off-by: suryyyansh <suryansh.arya5472@gmail.com>
1 parent 727a306 commit 6467af5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ async fn main() -> Result<(), ServerError> {
480480

481481
SEARCH_ARGUMENTS
482482
.set(search_arguments)
483-
.map_err(|_| ServerError::Operation("Failed to set `SERVER_INFO`.".to_string()))?;
483+
.map_err(|_| ServerError::Operation("Failed to set `SEARCH_ARGUMENTS`.".to_string()))?;
484484
}
485485

486486
// let server = Server::bind(&addr).serve(new_service);

src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub(crate) fn gen_chat_id() -> String {
1111

1212
/// Search related items that aren't directly supported by SearchConfig
1313
#[cfg(feature = "search")]
14+
#[derive(Debug)]
1415
pub(crate) struct SearchArguments {
1516
/// API key to be supplied to the endpoint, if supported. Not used by Bing.
1617
pub(crate) api_key: String,

0 commit comments

Comments
 (0)