Skip to content

Commit 4ae0906

Browse files
andyfellerCopilot
andcommitted
Fix Rust CI: format E2E imports and skip the README fragment
The Auto tier README example is a fragment that references an undefined 'session' binding, so rustdoc could not compile it as a doctest. Mark it 'rust,ignore' to match every other fragment in the file, and apply the rustfmt import merge the format job asked for. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2aad36e9-e078-4b9c-afa1-0c7cd2c71f74
1 parent fee4bd7 commit 4ae0906

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Change the Auto routing preference without changing the selected model. The runt
390390

391391
Watch for the outcome through the `session.model_change` event on success or the ephemeral `session.auto_tier_switch_failed` event on failure. Read the authoritative committed, pending, and activating preferences at any time through the session's `model.getCurrent` RPC method.
392392

393-
```rust
393+
```rust,ignore
394394
use github_copilot_sdk::{AutoTier, ModelSwitchAutoTierStatus};
395395
396396
let result = session.set_auto_tier(Some(AutoTier::Intelligence)).await?;

rust/tests/e2e/auto_tier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
use github_copilot_sdk::SetModelOptions;
12
use github_copilot_sdk::rpc::ModelSwitchAutoTierStatus;
23
use github_copilot_sdk::session::Session;
34
use github_copilot_sdk::session_events::AutoTier;
4-
use github_copilot_sdk::SetModelOptions;
55

66
use super::support::with_dedicated_e2e_context;
77

0 commit comments

Comments
 (0)