style: auto-format entire codebase with cargo fmt (stable rustfmt.toml)
Some checks failed
ci/woodpecker/pr/check Pipeline failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled
Some checks failed
ci/woodpecker/pr/check Pipeline failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled
This commit is contained in:
@@ -6,6 +6,6 @@ pub mod validation;
|
||||
|
||||
pub use formatting::*;
|
||||
// pub use modal_handler::*; // Используется через явный import
|
||||
pub use retry::{with_timeout, with_timeout_msg, with_timeout_ignore};
|
||||
pub use retry::{with_timeout, with_timeout_ignore, with_timeout_msg};
|
||||
pub use tdlib::*;
|
||||
pub use validation::*;
|
||||
|
||||
@@ -105,10 +105,9 @@ mod tests {
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_with_timeout_success() {
|
||||
let result = with_timeout(Duration::from_secs(1), async {
|
||||
Ok::<_, String>("success".to_string())
|
||||
})
|
||||
.await;
|
||||
let result =
|
||||
with_timeout(Duration::from_secs(1), async { Ok::<_, String>("success".to_string()) })
|
||||
.await;
|
||||
|
||||
assert!(result.is_ok());
|
||||
assert_eq!(result.unwrap(), "success");
|
||||
|
||||
Reference in New Issue
Block a user