From 07806529f94f02f3fc9be41ad5b17626305ce001 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Fri, 9 Feb 2024 22:50:50 -0500 Subject: fix warnings --- generator/src/main.rs | 2 +- generator/src/methods.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'generator') 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, ) -> 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; -- cgit v1.2.3