diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-02-10 04:50:50 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-02-10 04:50:50 +0100 |
commit | 07806529f94f02f3fc9be41ad5b17626305ce001 (patch) | |
tree | aa3b60c4cfa3f85d161e89b6a0d7de6abc4051e1 /generator | |
parent | remove trailing doc comment lines (diff) | |
download | forgejo-api-07806529f94f02f3fc9be41ad5b17626305ce001.tar.xz forgejo-api-07806529f94f02f3fc9be41ad5b17626305ce001.zip |
fix warnings
Diffstat (limited to 'generator')
-rw-r--r-- | generator/src/main.rs | 2 | ||||
-rw-r--r-- | generator/src/methods.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs index 6ca4b45..3c384c3 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -238,7 +238,7 @@ fn schema_subtypes( schema: &Schema, subtypes: &mut Vec<String>, ) -> eyre::Result<()> { - let b = match schema { + match schema { Schema { _type: Some(SchemaType::One(Primitive::Object)), .. diff --git a/generator/src/methods.rs b/generator/src/methods.rs index 025f159..70ebe99 100644 --- a/generator/src/methods.rs +++ b/generator/src/methods.rs @@ -1,5 +1,5 @@ use crate::{openapi::*, schema_ref_type_name}; -use eyre::{OptionExt, WrapErr}; +use eyre::WrapErr; use heck::{ToPascalCase, ToSnakeCase}; use std::fmt::Write; |