Skip to content

Commit

Permalink
fix: doctest (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo authored Mar 22, 2024
2 parents d9768d7 + db3dfe4 commit 30eb64e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
targets: ${{ matrix.job.target }}
toolchain: 1.76.0
components: rust-src,rustfmt,clippy
components: rust-src,rust-docs,rustfmt,clippy
- name: Setup Cache
uses: Swatinem/[email protected]
with:
Expand Down
12 changes: 6 additions & 6 deletions proto/tfplugin6.3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ message PlanResourceChange {
// specific details of the legacy SDK type system, and are not a general
// mechanism to avoid proper type handling in providers.
//
// ==== DO NOT USE THIS ====
// ==== THIS MUST BE LEFT UNSET IN ALL OTHER SDKS ====
// ==== DO NOT USE THIS ====
// ==== DO NOT USE THIS ====
// ==== THIS MUST BE LEFT UNSET IN ALL OTHER SDKS ====
// ==== DO NOT USE THIS ====
bool legacy_type_system = 5;
}
}
Expand All @@ -342,9 +342,9 @@ message ApplyResourceChange {
// specific details of the legacy SDK type system, and are not a general
// mechanism to avoid proper type handling in providers.
//
// ==== DO NOT USE THIS ====
// ==== THIS MUST BE LEFT UNSET IN ALL OTHER SDKS ====
// ==== DO NOT USE THIS ====
// ==== DO NOT USE THIS ====
// ==== THIS MUST BE LEFT UNSET IN ALL OTHER SDKS ====
// ==== DO NOT USE THIS ====
bool legacy_type_system = 4;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ pub enum NestedBlock {
/// The nested block can appear at most once (if not given, it will be null)
/// This is implemented with a list block, and must be serialized with `value::serde_as_vec`
/// ```
/// use tf_plugin::{value, Value};
/// # use serde::{Serialize, Deserialize};
/// use tf_provider::{value, Value};
///
/// #[derive(Serialize, Deserialize)]
/// struct MyBlock {
Expand Down

0 comments on commit 30eb64e

Please sign in to comment.