Skip to content

Commit

Permalink
Kill redundant imports.
Browse files Browse the repository at this point in the history
Recently Rust starting warning about redundant imports, e.g.:
```
warning: the item `Extend` is imported redundantly
   --> runtime/src/lib.rs:39:5
    |
39  | use std::iter::Extend;
    |     ^^^^^^^^^^^^^^^^^
```

This change removes all such imports.
  • Loading branch information
vext01 authored and CensoredUsername committed Sep 26, 2024
1 parent b049d8f commit 50c8272
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion plugin/src/arch/aarch64/ast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use syn;
use proc_macro2::Span;

use crate::common::{Size, Jump};
Expand Down
1 change: 0 additions & 1 deletion plugin/src/arch/x64/ast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use syn;
use proc_macro2::Span;

use crate::common::{Size, Jump};
Expand Down
1 change: 0 additions & 1 deletion plugin/src/serialize.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use syn;
use syn::parse;
use syn::spanned::Spanned;
use proc_macro2::{Span, TokenStream, TokenTree, Literal};
Expand Down
3 changes: 1 addition & 2 deletions runtime/src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,7 @@ impl LitPool {
#[cfg(test)]
mod tests {
use crate::*;
use std::fmt::Debug;
use relocations::{Relocation, RelocationSize};
use relocations::RelocationSize;

#[test]
fn test_litpool_size() {
Expand Down
1 change: 0 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ use crate::components::{MemoryManager, LabelRegistry, RelocRegistry, ManagedRelo
use crate::relocations::Relocation;

use std::hash::Hash;
use std::iter::Extend;
use std::sync::{Arc, RwLock, RwLockReadGuard};
use std::io;
use std::error;
Expand Down

0 comments on commit 50c8272

Please sign in to comment.