Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,6 @@ fn handle_req<W: Write>(
}

/// Iterator over response headers
#[allow(dead_code)]
pub struct Headers<'a> {
lines: &'a [String],
idx: usize,
Expand Down Expand Up @@ -1857,7 +1856,6 @@ impl ApiResponse {
}

/// Iterates over the headers.
#[allow(dead_code)]
pub fn headers(&self) -> Headers<'_> {
Headers {
lines: &self.headers[..],
Expand All @@ -1866,7 +1864,6 @@ impl ApiResponse {
}

/// Looks up the first matching header for a key.
#[allow(dead_code)]
pub fn get_header(&self, key: &str) -> Option<&str> {
for (header_key, header_value) in self.headers() {
if header_key.eq_ignore_ascii_case(key) {
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ impl Clone for Config {
}
}

#[allow(clippy::manual_map)]
#[expect(clippy::manual_map)]
fn get_default_auth(ini: &Ini) -> Option<Auth> {
if let Ok(val) = env::var("SENTRY_AUTH_TOKEN") {
Some(Auth::Token(val.into()))
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![warn(clippy::allow_attributes)]
#![warn(clippy::unnecessary_wraps)]

mod api;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/auth_token/org_auth_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct OrgAuthToken {

/// Represents the payload data of an org auth token.
#[derive(Clone, Debug, Deserialize)]
#[allow(dead_code)] // Otherwise, we get a warning about unused fields
#[expect(dead_code)] // Otherwise, we get a warning about unused fields
pub struct AuthTokenPayload {
iat: f64,
pub region_url: String,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/dif_upload/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ fn collect_object_dif<'a>(
// We retain the buffer and the borrowed object in a new SelfCell. This is
// incredibly unsafe, but in our case it is fine, since the SelfCell owns the same
// buffer that was used to retrieve the object.
#[allow(clippy::missing_transmute_annotations)]
#[expect(clippy::missing_transmute_annotations)]
let cell = unsafe {
SelfCell::from_raw(
buffer.clone(),
Expand Down
8 changes: 4 additions & 4 deletions src/utils/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@ pub fn set_quiet_mode(is_quiet: bool) {
}

// NOTE: Remove `allow`s after first use.
#[allow(unused_macros)]
#[expect(unused_macros)]
macro_rules! quiet_println {
($($tt:tt)*) => {{
if !crate::utils::logging::is_quiet_mode() {
println!($($tt)*);
}
}};
}
#[allow(unused_imports)]
#[expect(unused_imports)]
pub(crate) use quiet_println;

// NOTE: Remove `allow`s after first use.
#[allow(unused_macros)]
#[expect(unused_macros)]
macro_rules! quiet_eprintln {
($($tt:tt)*) => {{
if !crate::utils::logging::is_quiet_mode() {
eprintln!($($tt)*);
}
}};
}
#[allow(unused_imports)]
#[expect(unused_imports)]
pub(crate) use quiet_eprintln;

// Globally shared ProgressBar instance.
Expand Down
Loading