Skip to content

Commit

Permalink
Apply clippy lints, and do a cargo update (#834)
Browse files Browse the repository at this point in the history
This is still holding off on updating the `sourcemap` dependency, as we would probably have to bump that in `js-source-scopes` first.
  • Loading branch information
Swatinem authored Apr 3, 2024
1 parent 6a7d2de commit bd90dfb
Show file tree
Hide file tree
Showing 13 changed files with 142 additions and 148 deletions.
273 changes: 141 additions & 132 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion symbolic-cfi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
//! [`CfiCache`]: struct.CfiCache.html
use std::collections::HashMap;
use std::convert::TryInto;
use std::error::Error;
use std::fmt;
use std::io::{self, Write};
Expand Down
2 changes: 1 addition & 1 deletion symbolic-debuginfo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ smallvec = { version = "1.10.0", optional = true }
symbolic-common = { version = "12.8.0", path = "../symbolic-common" }
symbolic-ppdb = { version = "12.8.0", path = "../symbolic-ppdb", optional = true }
thiserror = "1.0.39"
wasmparser = { version = "0.201.0", optional = true }
wasmparser = { version = "0.202.0", optional = true }
zip = { version = "0.6.4", optional = true, default-features = false, features = ["deflate"] }

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion symbolic-debuginfo/src/base.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::borrow::Cow;
use std::fmt;
use std::iter::FromIterator;
use std::ops::{Bound, Deref, RangeBounds};
use std::str::FromStr;

Expand Down
1 change: 0 additions & 1 deletion symbolic-debuginfo/src/breakpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use symbolic_common::{Arch, AsSelf, CodeId, DebugId, Language, Name, NameManglin
use crate::base::*;
use crate::function_builder::FunctionBuilder;
use crate::sourcebundle::SourceFileDescriptor;
use crate::Parse;

#[derive(Clone, Debug)]
struct LineOffsets<'data> {
Expand Down
2 changes: 0 additions & 2 deletions symbolic-debuginfo/src/elf.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Support for the Executable and Linkable Format, used on Linux.
use std::borrow::Cow;
use std::convert::TryInto;
use std::error::Error;
use std::ffi::CStr;
use std::fmt;
Expand All @@ -23,7 +22,6 @@ use symbolic_common::{Arch, AsSelf, CodeId, DebugId, Uuid};

use crate::base::*;
use crate::dwarf::{Dwarf, DwarfDebugSession, DwarfError, DwarfSection, Endian};
use crate::Parse;

const UUID_SIZE: usize = 16;
const PAGE_SIZE: usize = 4096;
Expand Down
1 change: 0 additions & 1 deletion symbolic-debuginfo/src/pdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use symbolic_common::{
use crate::base::*;
use crate::function_stack::FunctionStack;
use crate::sourcebundle::SourceFileDescriptor;
use crate::Parse;

type Pdb<'data> = pdb::PDB<'data, Cursor<&'data [u8]>>;

Expand Down
1 change: 0 additions & 1 deletion symbolic-debuginfo/src/pe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use symbolic_common::{Arch, AsSelf, CodeId, DebugId};

use crate::base::*;
use crate::dwarf::*;
use crate::Parse;

pub use goblin::pe::exception::*;
pub use goblin::pe::section_table::SectionTable;
Expand Down
1 change: 0 additions & 1 deletion symbolic-debuginfo/src/sourcebundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ use crate::base::*;
use crate::js::{
discover_debug_id, discover_sourcemap_embedded_debug_id, discover_sourcemaps_location,
};
use crate::{DebugSession, ObjectKind, ObjectLike};

/// Magic bytes of a source bundle. They are prepended to the ZIP file.
static BUNDLE_MAGIC: [u8; 4] = *b"SYSB";
Expand Down
2 changes: 0 additions & 2 deletions symbolic-demangle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,6 @@ pub fn demangle(ident: &str) -> Cow<'_, str> {
mod test {
use super::*;

use symbolic_common::Name;

#[test]
fn simple_md5() {
let md5_mangled = "??@8ba8d245c9eca390356129098dbe9f73@";
Expand Down
1 change: 0 additions & 1 deletion symbolic-ppdb/src/format/metadata.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::fmt;
use std::ops::{Index, IndexMut};

Expand Down
2 changes: 0 additions & 2 deletions symbolic-symcache/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ mod raw;
pub mod transform;
mod writer;

use std::convert::TryInto;

use symbolic_common::Arch;
use symbolic_common::AsSelf;
use symbolic_common::DebugId;
Expand Down
2 changes: 0 additions & 2 deletions symbolic-unreal/src/logs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::convert::TryFrom;

use anylog::LogEntry;
use chrono::{DateTime, Utc};
use lazy_static::lazy_static;
Expand Down

0 comments on commit bd90dfb

Please sign in to comment.