From ad4339fce1852d2fa2b1e0bf152ee596a18378ed Mon Sep 17 00:00:00 2001
From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com>
Date: Sun, 15 Dec 2024 18:23:39 +0900
Subject: [PATCH] style: fix by lint
---
core/src/dar_syntax/ast/condition.rs | 2 +-
core/src/values/numeric_literal.rs | 2 +-
.../components/organisms/ConvertForm/ConvertForm.tsx | 10 ++++------
.../organisms/ConvertForm/useModInfoField.tsx | 3 +--
4 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/core/src/dar_syntax/ast/condition.rs b/core/src/dar_syntax/ast/condition.rs
index 9625571..7d6aae5 100644
--- a/core/src/dar_syntax/ast/condition.rs
+++ b/core/src/dar_syntax/ast/condition.rs
@@ -12,7 +12,7 @@ pub enum Condition<'input> {
Exp(Expression<'input>),
}
-impl<'input> Condition<'input> {
+impl Condition<'_> {
/// push to inner vec
///
/// # panics
diff --git a/core/src/values/numeric_literal.rs b/core/src/values/numeric_literal.rs
index d911a9c..1fcc5f2 100644
--- a/core/src/values/numeric_literal.rs
+++ b/core/src/values/numeric_literal.rs
@@ -76,7 +76,7 @@ impl<'de> Deserialize<'de> for NumericLiteral {
/// Inner deserialization struct
struct NumericLiteralVisitor;
- impl<'de> serde::de::Visitor<'de> for NumericLiteralVisitor {
+ impl serde::de::Visitor<'_> for NumericLiteralVisitor {
type Value = NumericLiteral;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
diff --git a/gui/frontend/src/components/organisms/ConvertForm/ConvertForm.tsx b/gui/frontend/src/components/organisms/ConvertForm/ConvertForm.tsx
index 7a5137d..71b8a3d 100644
--- a/gui/frontend/src/components/organisms/ConvertForm/ConvertForm.tsx
+++ b/gui/frontend/src/components/organisms/ConvertForm/ConvertForm.tsx
@@ -142,9 +142,7 @@ export function ConvertForm() {
const InputPathFields = () => {
const pathFields = useInputPathFields();
- return (
- pathFields.map((props) => {
- return
- })
- )
-}
+ return pathFields.map((props) => {
+ return ;
+ });
+};
diff --git a/gui/frontend/src/components/organisms/ConvertForm/useModInfoField.tsx b/gui/frontend/src/components/organisms/ConvertForm/useModInfoField.tsx
index f0082f7..803dd1d 100644
--- a/gui/frontend/src/components/organisms/ConvertForm/useModInfoField.tsx
+++ b/gui/frontend/src/components/organisms/ConvertForm/useModInfoField.tsx
@@ -1,7 +1,6 @@
import { useTranslation } from '@/components/hooks/useTranslation';
-import { InputModInfoField } from './InputModInfoField';
-
+import type { InputModInfoField } from './InputModInfoField';
import type { ComponentPropsWithRef } from 'react';
export const useModInfoFields = () => {