Skip to content

Commit

Permalink
Clippy and fmt suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin M. Gill committed Apr 11, 2024
1 parent 32cd76c commit f504ddc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/framerecord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub struct FrameRecord {
}

impl FrameRecord {
pub fn get_frame<F:DataSource>(&self, context: &ProcessContext<F>) -> Result<DataFrame> {
pub fn get_frame<F: DataSource>(&self, context: &ProcessContext<F>) -> Result<DataFrame> {
let (_, ser) = context
.fp_map
.get_map()
Expand Down
12 changes: 6 additions & 6 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ impl SerFrame {
}
}

impl Into<DataFrame> for SerFrame {
fn into(self) -> DataFrame {
impl From<SerFrame> for DataFrame {
fn from(val: SerFrame) -> Self {
DataFrame {
buffer: self.buffer,
timestamp: self.timestamp,
buffer: val.buffer,
timestamp: val.timestamp,
}
}
}
Expand Down Expand Up @@ -308,11 +308,11 @@ impl DataSource for SerFile {
}

fn date_time(&self) -> TimeStamp {
self.date_time.clone()
self.date_time
}

fn date_time_utc(&self) -> TimeStamp {
self.date_time_utc.clone()
self.date_time_utc
}

fn total_file_size(&self) -> usize {
Expand Down

0 comments on commit f504ddc

Please sign in to comment.