From fc5468664fffaf7c560fb33bdce1cf052e2c2c27 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Sun, 25 Feb 2024 20:54:57 +0000 Subject: [PATCH] Remove some unused imports --- protobuf-support/src/lexer/lexer_impl.rs | 1 - protobuf/src/coded_input_stream/buf_read_iter.rs | 2 -- protobuf/src/message_field.rs | 1 - protobuf/src/reflect/field/mod.rs | 5 ----- 4 files changed, 9 deletions(-) diff --git a/protobuf-support/src/lexer/lexer_impl.rs b/protobuf-support/src/lexer/lexer_impl.rs index 4990c8f61..f0d6a9609 100644 --- a/protobuf-support/src/lexer/lexer_impl.rs +++ b/protobuf-support/src/lexer/lexer_impl.rs @@ -1,5 +1,4 @@ use std::char; -use std::convert::TryFrom; use std::num::ParseFloatError; use std::num::ParseIntError; diff --git a/protobuf/src/coded_input_stream/buf_read_iter.rs b/protobuf/src/coded_input_stream/buf_read_iter.rs index 94109f2d1..e79e22718 100644 --- a/protobuf/src/coded_input_stream/buf_read_iter.rs +++ b/protobuf/src/coded_input_stream/buf_read_iter.rs @@ -446,8 +446,6 @@ mod test_bytes { #[cfg(test)] mod test { use std::io; - use std::io::BufRead; - use std::io::Read; use super::*; diff --git a/protobuf/src/message_field.rs b/protobuf/src/message_field.rs index c7b46376e..5fc533178 100644 --- a/protobuf/src/message_field.rs +++ b/protobuf/src/message_field.rs @@ -1,4 +1,3 @@ -use std::default::Default; use std::hash::Hash; use std::ops::Deref; use std::option; diff --git a/protobuf/src/reflect/field/mod.rs b/protobuf/src/reflect/field/mod.rs index 3da38cad0..07c0ae8f6 100644 --- a/protobuf/src/reflect/field/mod.rs +++ b/protobuf/src/reflect/field/mod.rs @@ -563,12 +563,7 @@ pub(crate) enum FieldDescriptorImplRef<'a> { #[cfg(test)] mod test { - use std::collections::HashMap; - use crate::descriptor::DescriptorProto; - use crate::reflect::ReflectValueBox; - use crate::well_known_types::struct_::Struct; - use crate::well_known_types::struct_::Value; use crate::MessageFull; #[test]