Skip to content

Commit

Permalink
upgrade rust on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
obmarg committed Sep 17, 2023
1 parent 6cb1bd2 commit bbd1ba0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@1.69.0
- uses: dtolnay/rust-toolchain@1.72.0
with:
components: rustfmt

Expand Down
3 changes: 2 additions & 1 deletion cynic-codegen/src/schema_module_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pub fn attribute_impl(
);

let Ok(out_dir) = std::env::var("OUT_DIR") else {
return Err(SchemaLoadError::UnknownOutDirWithNamedSchema(schema_name).into_syn_error(schema_literal.span()));
return Err(SchemaLoadError::UnknownOutDirWithNamedSchema(schema_name)
.into_syn_error(schema_literal.span()));
};

let mut path = PathBuf::from(&out_dir);
Expand Down
4 changes: 3 additions & 1 deletion cynic-codegen/src/types/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ pub fn parse_rust_type(ty: &syn::Type) -> RustType<'_> {
syn::Type::Reference(syn::TypeReference { elem, .. })
if matches!(**elem, syn::Type::Slice(_)) =>
{
let syn::Type::Slice(array) = &**elem else { unreachable!() };
let syn::Type::Slice(array) = &**elem else {
unreachable!()
};
return RustType::List {
syn: Cow::Borrowed(ty),
inner: Box::new(parse_rust_type(&array.elem)),
Expand Down
2 changes: 1 addition & 1 deletion cynic-introspection/src/detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl CapabilitiesQuery {

fn version_supported(&self) -> SpecificationVersion {
let Some(type_type) = &self.type_type else {
return SpecificationVersion::Unknown
return SpecificationVersion::Unknown;
};

let specified_by_field = type_type
Expand Down

0 comments on commit bbd1ba0

Please sign in to comment.