Skip to content

Commit

Permalink
style: fix by lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Dec 15, 2024
1 parent 4700f54 commit ad4339f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/src/dar_syntax/ast/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum Condition<'input> {
Exp(Expression<'input>),
}

impl<'input> Condition<'input> {
impl Condition<'_> {
/// push to inner vec
///
/// # panics
Expand Down
2 changes: 1 addition & 1 deletion core/src/values/numeric_literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ export function ConvertForm() {
const InputPathFields = () => {
const pathFields = useInputPathFields();

return (
pathFields.map((props) => {
return <InputPathField key={props.name} {...props} />
})
)
}
return pathFields.map((props) => {
return <InputPathField key={props.name} {...props} />;
});
};
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down

0 comments on commit ad4339f

Please sign in to comment.