Skip to content

Commit 54f4185

Browse files
chore: Apply suggestions
Co-authored-by: Nick <[email protected]>
1 parent a432a18 commit 54f4185

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/stackable-versioned-macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ of other generated items, like the status struct (if used) or the version enum.
864864
865865
### `#[versioned(k8s(singular = "..."))]`
866866
867-
Set the singular name. Defaults to lowercased .kind value.
867+
Set the singular name. Defaults to lowercased `kind` value.
868868
869869
### `#[versioned(k8s(plural = "..."))]`
870870
@@ -943,7 +943,7 @@ pub struct FooSpec {
943943
944944
# fn main() {
945945
let merged_crd = Foo::merged_crd(FooVersion::V1Beta1).unwrap();
946-
println!("{}", serde_yaml::to_string(&merged_crd).unwrap());
946+
println!("{yaml}", yaml = serde_yaml::to_string(&merged_crd).unwrap());
947947
# }
948948
```
949949

crates/stackable-versioned/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Add support for CRD conversions via ConversionReviews ([#1050]).
10-
- Add new `try_convert` function to convert objects received via a ConversionReview
11-
- Add new `enable_tracing` option to `#[versioned(k8s(options(...)))]`
10+
- Add new `try_convert` function to convert objects received via a ConversionReview.
11+
- Add new `enable_tracing` option to `#[versioned(k8s(options(...)))]`.
1212
- Implement basic ground work for downgrading custom resources ([#1033]).
1313
- Emit `From` implementations to downgrade custom resource specs.
1414
- Emit a status struct to be able to track values required during downgrades and upgrades of

crates/stackable-versioned/src/k8s.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ pub enum ParseObjectError {
5050
#[snafu(display(r#"failed to find "apiVersion" field"#))]
5151
FieldNotPresent,
5252

53-
#[snafu(display(r#"the "apiVersion" field is not a string"#))]
53+
#[snafu(display(r#"the "apiVersion" field must be a string"#))]
5454
FieldNotStr,
5555

5656
#[snafu(display("encountered unknown object api version {api_version:?}"))]
5757
UnknownApiVersion { api_version: String },
5858

59-
#[snafu(display("failed to deserialize object from json"))]
59+
#[snafu(display("failed to deserialize object from JSON"))]
6060
Deserialize { source: serde_json::Error },
6161
}
6262

0 commit comments

Comments
 (0)