From 69c09dac245b58014f9a9b0cd32baed1e6d9f900 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Thu, 25 Jun 2026 17:27:47 +0200 Subject: [PATCH] removed hidden-line markers from doc --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 64a5d44..4ff8a62 100644 --- a/README.md +++ b/README.md @@ -75,22 +75,22 @@ use proton_sdk::config::ProtonClientConfiguration; use proton_sdk::session::ProtonApiSession; use proton_drive_sdk::ProtonDriveClient; -# async fn run() -> proton_sdk::error::Result<()> { -let config = ProtonClientConfiguration::new("external-drive-myapp@0.1.0-alpha"); +async fn run() -> proton_sdk::error::Result<()> { + let config = ProtonClientConfiguration::new("external-drive-myapp@0.1.0-alpha"); -let mut session = - ProtonApiSession::begin(config, "user@proton.me", b"mailbox-password").await?; -if session.is_waiting_for_second_factor() { - session.apply_second_factor_code("123456").await?; -} + let mut session = + ProtonApiSession::begin(config, "user@proton.me", b"mailbox-password").await?; + if session.is_waiting_for_second_factor() { + session.apply_second_factor_code("123456").await?; + } -let drive = ProtonDriveClient::new(&session, b"mailbox-password".to_vec()); -let root = drive.get_my_files_folder().await?; -for child in drive.enumerate_folder_children(&root.uid).await? { - println!("{} ({:?})", child.name, child.kind); + let drive = ProtonDriveClient::new(&session, b"mailbox-password".to_vec()); + let root = drive.get_my_files_folder().await?; + for child in drive.enumerate_folder_children(&root.uid).await? { + println!("{} ({:?})", child.name, child.kind); + } + Ok(()) } -# Ok(()) -# } ``` Already have tokens? Use `ProtonApiSession::resume(config, ResumeParameters {..})`