Skip to content

Commit

Permalink
Makes clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Jan 21, 2025
1 parent 434e2bf commit 184a408
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rust/tw_macros/src/tw_ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use syn::{
};

use std::env;
use std::fmt;
use std::fs;
use std::path::Path;

Expand Down Expand Up @@ -38,10 +39,10 @@ impl Parse for TWFFIType {
}
}

impl ToString for TWFFIType {
fn to_string(&self) -> String {
impl fmt::Display for TWFFIType {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
TWFFIType::StaticFunction => "static_function".to_string(),
TWFFIType::StaticFunction => write!(f, "static_function"),
}
}
}
Expand Down

0 comments on commit 184a408

Please sign in to comment.