Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
- name: Install MSRV toolchain
run: rustup install 1.75.0 --profile minimal

# remove this once our MSRV is >= 1.84, which has the MSRV-aware resolver
- name: fix deps for old rustc
run: |
rustup run 1.75.0 cargo update litemap --precise 0.7.4
rustup run 1.75.0 cargo update zerofrom --precise 0.1.5

- name: Run cargo test
run: rustup run 1.75.0 cargo test --all-features

Expand Down
3 changes: 3 additions & 0 deletions generator/rust.stoneg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,9 @@ def _impl_display(self, typ: ir.DataType) -> None:
msg = msg[:-1]
if msg:
msg += ': '
else:
# if there's no message for the variant, use the type name
msg = f"{type_name}: "
msg += inner_fmt
args = 'inner'

Expand Down
2 changes: 1 addition & 1 deletion src/default_async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl HttpClient for ReqwestClient {

let body = resp
.bytes_stream()
.map_err(|e| futures::io::Error::new(futures::io::ErrorKind::Other, e))
.map_err(futures::io::Error::other)
.into_async_read();

Ok(HttpRequestResultRaw {
Expand Down
16 changes: 8 additions & 8 deletions src/generated/types/file_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl ::std::fmt::Display for AddPropertiesError {
match self {
AddPropertiesError::TemplateNotFound(inner) => write!(f, "Template does not exist for the given identifier: {:?}", inner),
AddPropertiesError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
AddPropertiesError::Path(inner) => write!(f, "{}", inner),
AddPropertiesError::Path(inner) => write!(f, "AddPropertiesError: {}", inner),
AddPropertiesError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
AddPropertiesError::PropertyFieldTooLarge => f.write_str("One or more of the supplied property field values is too large."),
AddPropertiesError::DoesNotFitTemplate => f.write_str("One or more of the supplied property fields does not conform to the template specifications."),
Expand Down Expand Up @@ -911,7 +911,7 @@ impl ::std::fmt::Display for InvalidPropertyGroupError {
match self {
InvalidPropertyGroupError::TemplateNotFound(inner) => write!(f, "Template does not exist for the given identifier: {:?}", inner),
InvalidPropertyGroupError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
InvalidPropertyGroupError::Path(inner) => write!(f, "{}", inner),
InvalidPropertyGroupError::Path(inner) => write!(f, "InvalidPropertyGroupError: {}", inner),
InvalidPropertyGroupError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
InvalidPropertyGroupError::PropertyFieldTooLarge => f.write_str("One or more of the supplied property field values is too large."),
InvalidPropertyGroupError::DoesNotFitTemplate => f.write_str("One or more of the supplied property fields does not conform to the template specifications."),
Expand Down Expand Up @@ -1624,7 +1624,7 @@ impl ::std::fmt::Display for PropertiesError {
match self {
PropertiesError::TemplateNotFound(inner) => write!(f, "Template does not exist for the given identifier: {:?}", inner),
PropertiesError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
PropertiesError::Path(inner) => write!(f, "{}", inner),
PropertiesError::Path(inner) => write!(f, "PropertiesError: {}", inner),
PropertiesError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
_ => write!(f, "{:?}", *self),
}
Expand Down Expand Up @@ -1983,7 +1983,7 @@ impl ::std::error::Error for PropertiesSearchError {
impl ::std::fmt::Display for PropertiesSearchError {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
match self {
PropertiesSearchError::PropertyGroupLookup(inner) => write!(f, "{}", inner),
PropertiesSearchError::PropertyGroupLookup(inner) => write!(f, "PropertiesSearchError: {}", inner),
_ => write!(f, "{:?}", *self),
}
}
Expand Down Expand Up @@ -3300,9 +3300,9 @@ impl ::std::fmt::Display for RemovePropertiesError {
match self {
RemovePropertiesError::TemplateNotFound(inner) => write!(f, "Template does not exist for the given identifier: {:?}", inner),
RemovePropertiesError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
RemovePropertiesError::Path(inner) => write!(f, "{}", inner),
RemovePropertiesError::Path(inner) => write!(f, "RemovePropertiesError: {}", inner),
RemovePropertiesError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
RemovePropertiesError::PropertyGroupLookup(inner) => write!(f, "{}", inner),
RemovePropertiesError::PropertyGroupLookup(inner) => write!(f, "RemovePropertiesError: {}", inner),
_ => write!(f, "{:?}", *self),
}
}
Expand Down Expand Up @@ -3971,12 +3971,12 @@ impl ::std::fmt::Display for UpdatePropertiesError {
match self {
UpdatePropertiesError::TemplateNotFound(inner) => write!(f, "Template does not exist for the given identifier: {:?}", inner),
UpdatePropertiesError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
UpdatePropertiesError::Path(inner) => write!(f, "{}", inner),
UpdatePropertiesError::Path(inner) => write!(f, "UpdatePropertiesError: {}", inner),
UpdatePropertiesError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
UpdatePropertiesError::PropertyFieldTooLarge => f.write_str("One or more of the supplied property field values is too large."),
UpdatePropertiesError::DoesNotFitTemplate => f.write_str("One or more of the supplied property fields does not conform to the template specifications."),
UpdatePropertiesError::DuplicatePropertyGroups => f.write_str("There are 2 or more property groups referring to the same templates in the input."),
UpdatePropertiesError::PropertyGroupLookup(inner) => write!(f, "{}", inner),
UpdatePropertiesError::PropertyGroupLookup(inner) => write!(f, "UpdatePropertiesError: {}", inner),
_ => write!(f, "{:?}", *self),
}
}
Expand Down
Loading