Lint code

This commit is contained in:
Zoe Roux 2023-09-04 00:29:32 +02:00
parent e8654ca181
commit 05b8f5b400
No known key found for this signature in database
3 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,23 @@
/*
* Kyoo - A portable and vast media library solution.
* Copyright (c) Kyoo.
*
* See AUTHORS.md and LICENSE file in the project root for full license information.
*
* Kyoo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Kyoo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
// Type definitions for react-native-video 5.0
// Project: https://github.com/react-native-community/react-native-video, https://github.com/brentvatne/react-native-video
// Definitions by: HuHuanming <https://github.com/huhuanming>

View File

@ -13,8 +13,8 @@ use crate::{
audio::*,
identify::{identify, Audio, Chapter, MediaInfo, Subtitle, Video},
state::Transcoder,
transcode::Quality,
video::*,
transcode::Quality
};
mod audio;
mod error;

View File

@ -2,7 +2,6 @@ use derive_more::Display;
use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};
use serde::Serialize;
use utoipa::ToSchema;
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::path::PathBuf;
@ -12,6 +11,7 @@ use std::str::FromStr;
use tokio::io::{AsyncBufReadExt, BufReader};
use tokio::process::{Child, Command};
use tokio::sync::watch;
use utoipa::ToSchema;
const SEGMENT_TIME: u32 = 10;