From af9280c998f6c2c7c40b2067ffa02d89784b40fa Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 29 Jan 2024 00:12:24 +0100 Subject: merge imports --- matroska/src/block.rs | 8 +++++--- matroska/src/read.rs | 4 +--- matroska/src/unflatten.rs | 3 +-- matroska/src/write.rs | 4 +--- 4 files changed, 8 insertions(+), 11 deletions(-) (limited to 'matroska') diff --git a/matroska/src/block.rs b/matroska/src/block.rs index 1ab8ceb..6cf9891 100644 --- a/matroska/src/block.rs +++ b/matroska/src/block.rs @@ -3,9 +3,11 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2024 metamuffin */ -use crate::write::vint_length; -use crate::{read::ReadExt, write::write_vint}; -use crate::{ReadValue, Result, WriteValue}; +use crate::{ + read::ReadExt, + write::{vint_length, write_vint}, + ReadValue, Result, WriteValue, +}; use std::io::{Cursor, Write}; #[derive(Debug, PartialEq, Clone, Copy)] diff --git a/matroska/src/read.rs b/matroska/src/read.rs index 68a8efa..536f2f8 100644 --- a/matroska/src/read.rs +++ b/matroska/src/read.rs @@ -3,9 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2024 metamuffin */ -use crate::error::Error; -use crate::Result; -use crate::{matroska::MatroskaTag, size::EbmlSize, Master}; +use crate::{error::Error, matroska::MatroskaTag, size::EbmlSize, Master, Result}; use log::{debug, warn}; use std::{ collections::VecDeque, diff --git a/matroska/src/unflatten.rs b/matroska/src/unflatten.rs index 944d2c7..b559598 100644 --- a/matroska/src/unflatten.rs +++ b/matroska/src/unflatten.rs @@ -3,8 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2024 metamuffin */ -use crate::Result; -use crate::{matroska::MatroskaTag, Master}; +use crate::{matroska::MatroskaTag, Master, Result}; pub struct Unflat<'a> { pub item: MatroskaTag, diff --git a/matroska/src/write.rs b/matroska/src/write.rs index 7eb13f1..1ec8564 100644 --- a/matroska/src/write.rs +++ b/matroska/src/write.rs @@ -3,9 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2024 metamuffin */ -use crate::error::Error; -use crate::Result; -use crate::{matroska::MatroskaTag, size::EbmlSize, Master}; +use crate::{error::Error, matroska::MatroskaTag, size::EbmlSize, Master, Result}; use log::debug; use std::io::{Seek, Write}; -- cgit v1.2.3-70-g09d2