Commit 07d7db5
authored
docs: fix non-compiling Rust external-transport example (#2142)
The Rust tab of "Connecting the SDK to the external server"
constructed `Transport::External { host, port }` and omitted the
variant's third field, so the example failed to compile:
error[E0063]: missing field `connection_token` in initializer of `github_copilot_sdk::Transport`
`connection_token` was added to the variant after the example was
written. `None` is the value that matches this section: the server
it tells you to start (`copilot --headless --port 4321`) has no
token, and the other Rust example that constructs this variant, in
docs/setup/multi-tenancy.md, already passes `None`.
Co-authored-by: examon <examon@users.noreply.github.com>1 parent b733d53 commit 07d7db5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2053 | 2053 | | |
2054 | 2054 | | |
2055 | 2055 | | |
| 2056 | + | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | 2059 | | |
| |||
0 commit comments