From 3778b2148c3988f0dde6c7d1f4630cc333cc9b70 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 25 Apr 2023 22:00:52 +0900 Subject: [PATCH] Lint rust files --- transcoder/src/identify.rs | 3 +-- transcoder/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/transcoder/src/identify.rs b/transcoder/src/identify.rs index 65326fb7..a9650f8e 100644 --- a/transcoder/src/identify.rs +++ b/transcoder/src/identify.rs @@ -34,8 +34,7 @@ pub struct Chapter { /// The end time of the chapter (in second from the start of the episode). end: f32, /// The name of this chapter. This should be a human-readable name that could be presented to the user. - name: String - // TODO: add a type field for Opening, Credits... + name: String, // TODO: add a type field for Opening, Credits... } pub fn identify(_path: String) -> Result { diff --git a/transcoder/src/main.rs b/transcoder/src/main.rs index e8df8f04..8692c271 100644 --- a/transcoder/src/main.rs +++ b/transcoder/src/main.rs @@ -10,7 +10,7 @@ use error::ApiError; use utoipa::OpenApi; use crate::{ - identify::{identify, MediaInfo, Track, Chapter}, + identify::{identify, Chapter, MediaInfo, Track}, transcode::{Quality, Transcoder}, }; mod error;