Skip to content

Commit

Permalink
Bump typify from eed9bee to 681e311 (#1062)
Browse files Browse the repository at this point in the history
* Bump typify from `eed9bee` to `681e311`

Bumps [typify](https://github.com/oxidecomputer/typify) from `eed9bee` to `681e311`.
- [Commits](oxidecomputer/typify@eed9bee...681e311)

---
updated-dependencies:
- dependency-name: typify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* update fixtures

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <[email protected]>
  • Loading branch information
dependabot[bot] and ahl authored Feb 11, 2025
1 parent 9bcefa7 commit bb2a0d3
Show file tree
Hide file tree
Showing 23 changed files with 2,339 additions and 2,036 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions progenitor-impl/tests/output/src/buildomat_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub mod types {
pub payload: ::std::string::String,
pub seq: u32,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&TaskEvent> for TaskEvent {
Expand Down Expand Up @@ -620,7 +620,7 @@ pub mod types {
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub instance_id: ::std::option::Option<::std::string::String>,
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub lastping: ::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
pub recycle: bool,
pub tasks: ::std::vec::Vec<WorkerTask>,
}
Expand Down Expand Up @@ -721,7 +721,7 @@ pub mod types {
pub struct WorkerAppendTask {
pub payload: ::std::string::String,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask {
Expand Down Expand Up @@ -1205,8 +1205,10 @@ pub mod types {
payload: ::std::result::Result<::std::string::String, ::std::string::String>,
seq: ::std::result::Result<u32, ::std::string::String>,
stream: ::std::result::Result<::std::string::String, ::std::string::String>,
time:
::std::result::Result<chrono::DateTime<chrono::offset::Utc>, ::std::string::String>,
time: ::std::result::Result<
::chrono::DateTime<::chrono::offset::Utc>,
::std::string::String,
>,
}

impl ::std::default::Default for TaskEvent {
Expand Down Expand Up @@ -1253,7 +1255,7 @@ pub mod types {
}
pub fn time<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<chrono::DateTime<chrono::offset::Utc>>,
T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>,
T::Error: ::std::fmt::Display,
{
self.time = value
Expand Down Expand Up @@ -1717,7 +1719,7 @@ pub mod types {
::std::string::String,
>,
lastping: ::std::result::Result<
::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
::std::string::String,
>,
recycle: ::std::result::Result<bool, ::std::string::String>,
Expand Down Expand Up @@ -1771,7 +1773,7 @@ pub mod types {
pub fn lastping<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<
::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
>,
T::Error: ::std::fmt::Display,
{
Expand Down Expand Up @@ -1911,8 +1913,10 @@ pub mod types {
pub struct WorkerAppendTask {
payload: ::std::result::Result<::std::string::String, ::std::string::String>,
stream: ::std::result::Result<::std::string::String, ::std::string::String>,
time:
::std::result::Result<chrono::DateTime<chrono::offset::Utc>, ::std::string::String>,
time: ::std::result::Result<
::chrono::DateTime<::chrono::offset::Utc>,
::std::string::String,
>,
}

impl ::std::default::Default for WorkerAppendTask {
Expand Down Expand Up @@ -1948,7 +1952,7 @@ pub mod types {
}
pub fn time<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<chrono::DateTime<chrono::offset::Utc>>,
T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>,
T::Error: ::std::fmt::Display,
{
self.time = value
Expand Down
26 changes: 15 additions & 11 deletions progenitor-impl/tests/output/src/buildomat_builder_tagged.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub mod types {
pub payload: ::std::string::String,
pub seq: u32,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&TaskEvent> for TaskEvent {
Expand Down Expand Up @@ -596,7 +596,7 @@ pub mod types {
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub instance_id: ::std::option::Option<::std::string::String>,
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub lastping: ::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
pub recycle: bool,
pub tasks: ::std::vec::Vec<WorkerTask>,
}
Expand Down Expand Up @@ -693,7 +693,7 @@ pub mod types {
pub struct WorkerAppendTask {
pub payload: ::std::string::String,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask {
Expand Down Expand Up @@ -1163,8 +1163,10 @@ pub mod types {
payload: ::std::result::Result<::std::string::String, ::std::string::String>,
seq: ::std::result::Result<u32, ::std::string::String>,
stream: ::std::result::Result<::std::string::String, ::std::string::String>,
time:
::std::result::Result<chrono::DateTime<chrono::offset::Utc>, ::std::string::String>,
time: ::std::result::Result<
::chrono::DateTime<::chrono::offset::Utc>,
::std::string::String,
>,
}

impl ::std::default::Default for TaskEvent {
Expand Down Expand Up @@ -1211,7 +1213,7 @@ pub mod types {
}
pub fn time<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<chrono::DateTime<chrono::offset::Utc>>,
T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>,
T::Error: ::std::fmt::Display,
{
self.time = value
Expand Down Expand Up @@ -1675,7 +1677,7 @@ pub mod types {
::std::string::String,
>,
lastping: ::std::result::Result<
::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
::std::string::String,
>,
recycle: ::std::result::Result<bool, ::std::string::String>,
Expand Down Expand Up @@ -1729,7 +1731,7 @@ pub mod types {
pub fn lastping<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<
::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
>,
T::Error: ::std::fmt::Display,
{
Expand Down Expand Up @@ -1869,8 +1871,10 @@ pub mod types {
pub struct WorkerAppendTask {
payload: ::std::result::Result<::std::string::String, ::std::string::String>,
stream: ::std::result::Result<::std::string::String, ::std::string::String>,
time:
::std::result::Result<chrono::DateTime<chrono::offset::Utc>, ::std::string::String>,
time: ::std::result::Result<
::chrono::DateTime<::chrono::offset::Utc>,
::std::string::String,
>,
}

impl ::std::default::Default for WorkerAppendTask {
Expand Down Expand Up @@ -1906,7 +1910,7 @@ pub mod types {
}
pub fn time<T>(mut self, value: T) -> Self
where
T: ::std::convert::TryInto<chrono::DateTime<chrono::offset::Utc>>,
T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>,
T::Error: ::std::fmt::Display,
{
self.time = value
Expand Down
6 changes: 4 additions & 2 deletions progenitor-impl/tests/output/src/buildomat_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ impl<T: CliConfig> Cli<T> {
.arg(
::clap::Arg::new("time")
.long("time")
.value_parser(::clap::value_parser!(chrono::DateTime<chrono::offset::Utc>))
.value_parser(::clap::value_parser!(
::chrono::DateTime<::chrono::offset::Utc>
))
.required_unless_present("json-body"),
)
.arg(
Expand Down Expand Up @@ -671,7 +673,7 @@ impl<T: CliConfig> Cli<T> {
request = request.task(value.clone());
}

if let Some(value) = matches.get_one::<chrono::DateTime<chrono::offset::Utc>>("time") {
if let Some(value) = matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("time") {
request = request.body_map(|body| body.time(value.clone()))
}

Expand Down
6 changes: 3 additions & 3 deletions progenitor-impl/tests/output/src/buildomat_positional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub mod types {
pub payload: ::std::string::String,
pub seq: u32,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&TaskEvent> for TaskEvent {
Expand Down Expand Up @@ -537,7 +537,7 @@ pub mod types {
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub instance_id: ::std::option::Option<::std::string::String>,
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub lastping: ::std::option::Option<chrono::DateTime<chrono::offset::Utc>>,
pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>,
pub recycle: bool,
pub tasks: ::std::vec::Vec<WorkerTask>,
}
Expand Down Expand Up @@ -622,7 +622,7 @@ pub mod types {
pub struct WorkerAppendTask {
pub payload: ::std::string::String,
pub stream: ::std::string::String,
pub time: chrono::DateTime<chrono::offset::Utc>,
pub time: ::chrono::DateTime<::chrono::offset::Utc>,
}

impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask {
Expand Down
Loading

0 comments on commit bb2a0d3

Please sign in to comment.