Skip to content

Commit

Permalink
refactor: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
olichwiruk committed Dec 6, 2024
1 parent 766e19a commit 0b486c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion semantics/oca-ast/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl<'de> Deserialize<'de> for Command {
{
struct FieldVisitor;

impl<'de> Visitor<'de> for FieldVisitor {
impl Visitor<'_> for FieldVisitor {
type Value = Field;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
1 change: 0 additions & 1 deletion semantics/oca-ast/src/ast/recursive_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use super::{AttributeType, NestedAttrType, RefValue};
/// This module includes structures for setting up the recursion crate. They
/// enable usage of `expand_frames` and `collapse_frames` functions for
/// NestedAttrType.
pub enum NestedAttrTypeFrame<A> {
Reference(RefValue),
Value(AttributeType),
Expand Down
1 change: 0 additions & 1 deletion semantics/oca-file/src/ocafile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ fn oca_file_format(nested: NestedAttrType) -> String {
/// * `references` - Optional references names and thier saids for dereferencing
///
/// If references are present, ast would be trevers and all refn would be replaced with refs
pub fn generate_from_ast(ast: &OCAAst) -> String {
let mut ocafile = String::new();

Expand Down
2 changes: 1 addition & 1 deletion transformation/ast/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl<'de> Deserialize<'de> for Command {
{
struct FieldVisitor;

impl<'de> Visitor<'de> for FieldVisitor {
impl Visitor<'_> for FieldVisitor {
type Value = Field;

fn expecting(
Expand Down

0 comments on commit 0b486c7

Please sign in to comment.