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
2 changes: 1 addition & 1 deletion src/archive.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Filepack archive.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Encode, Decode, Magic)]
#[deco(magic = MagicType::Archive)]
pub(crate) struct Archive {
Expand Down
1 change: 0 additions & 1 deletion src/database_metadata.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::*;

#[allow(clippy::arbitrary_source_item_ordering)]
#[derive(Copy, Clone, Debug, Eq, FromRepr, Ord, PartialEq, PartialOrd, VariantArray)]
#[repr(u64)]
pub(crate) enum DatabaseMetadata {
Expand Down
13 changes: 6 additions & 7 deletions src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ fn generic_schema() {
#[test]
fn json_enum() {
/// Foo.
#[allow(dead_code)]
#[expect(dead_code)]
#[skip_serializing_none]
#[derive(Deserialize, Json)]
#[serde(deny_unknown_fields, rename_all = "snake_case", tag = "type")]
Expand Down Expand Up @@ -774,7 +774,7 @@ fn json_generic() {
///
/// - Bar is non-empty.
/// - Bar is full of love.
#[allow(dead_code)]
#[expect(dead_code)]
#[derive(Deserialize, Json)]
struct Foo<T> {
/// Bar.
Expand Down Expand Up @@ -815,7 +815,7 @@ fn json_generic() {
#[test]
fn json_string() {
/// Foo.
#[allow(dead_code)]
#[expect(dead_code)]
#[derive(Json)]
#[json(string)]
struct Foo(u64);
Expand Down Expand Up @@ -847,7 +847,6 @@ fn json_string() {
#[test]
fn json_string_enum() {
/// Foo.
#[allow(dead_code)]
#[derive(Deserialize, Json)]
#[serde(rename_all = "kebab-case")]
enum Foo {
Expand Down Expand Up @@ -892,7 +891,7 @@ fn json_string_enum() {
#[test]
fn json_struct() {
/// Foo.
#[allow(dead_code)]
#[expect(dead_code)]
#[skip_serializing_none]
#[derive(Deserialize, Json)]
#[serde(deny_unknown_fields)]
Expand Down Expand Up @@ -963,7 +962,7 @@ fn json_struct() {
#[test]
fn json_transparent() {
/// Foo.
#[allow(dead_code)]
#[expect(dead_code)]
#[serde_as]
#[derive(Deserialize, Json)]
#[serde(transparent)]
Expand Down Expand Up @@ -1005,7 +1004,7 @@ fn json_transparent() {
#[test]
fn json_untagged() {
/// Foo.
#[allow(dead_code)]
#[expect(dead_code)]
#[derive(Deserialize, Json)]
#[serde(untagged)]
enum Foo {
Expand Down
2 changes: 1 addition & 1 deletion src/entry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Entry in a directory.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Debug, Decode, Encode, PartialEq)]
pub struct Entry {
/// BLAKE3 hash of the entry's contents.
Expand Down
4 changes: 2 additions & 2 deletions src/entry_info.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use super::*;

/// Type-specific directory entry information.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Debug, Decode, Encode, EnumDiscriminants, PartialEq)]
#[strum_discriminants(
allow(clippy::arbitrary_source_item_ordering),
expect(clippy::arbitrary_source_item_ordering),
derive(Display),
name(EntryType),
strum(serialize_all = "kebab-case")
Expand Down
2 changes: 1 addition & 1 deletion src/float_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub(crate) trait FloatExt {

impl FloatExt for f64 {
fn into_u64(self) -> Option<u64> {
#![allow(
#![expect(
clippy::cast_possible_truncation,
clippy::cast_precision_loss,
clippy::cast_sign_loss
Expand Down
2 changes: 1 addition & 1 deletion src/head.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// The first byte of a deco-encoded byte string.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Debug, PartialEq)]
pub(crate) enum Head {
Small,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ fn initialize_tracing() -> Result<(), Box<dyn std::error::Error>> {
}

#[cfg(not(target_os = "linux"))]
#[allow(clippy::unnecessary_wraps)]
#[expect(clippy::unnecessary_wraps)]
fn journal_layer() -> Result<Option<Identity>, Box<dyn std::error::Error>> {
Ok(None)
}
Expand Down
2 changes: 1 addition & 1 deletion src/metadata.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Metadata describing a package's content.
#[allow(private_interfaces)]
#[expect(private_interfaces)]
#[skip_serializing_none]
#[derive(Clone, Debug, Default, Encode, Decode, Json, Magic, PartialEq, Serialize)]
#[deco(magic = MagicType::Metadata)]
Expand Down
2 changes: 1 addition & 1 deletion src/rotation.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Rotation to apply when displaying an image.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Debug, Decode, Default, Encode, PartialEq)]
pub(crate) enum Rotation {
/// No rotation.
Expand Down
2 changes: 1 addition & 1 deletion src/signature.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Ed25519 signature over an enveloped message.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(
Debug, Decode, Encode, DeserializeFromStr, Eq, Ord, PartialEq, PartialOrd, SerializeDisplay,
)]
Expand Down
2 changes: 1 addition & 1 deletion src/sort.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Package sort key.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Default, Deserialize, Display, EnumIter, Json, PartialEq)]
#[serde(rename_all = "kebab-case")]
#[strum(serialize_all = "kebab-case")]
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/serve/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl TestRequestBuilder {
struct TestServer {
data_dir: Utf8PathBuf,
router: Router,
#[allow(unused)]
#[expect(unused)]
tempdir: TempDir,
}

Expand Down
2 changes: 1 addition & 1 deletion src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ static TIME: LazyLock<Regex> = LazyLock::new(|| {
});

/// Point in time with varying precision.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Debug, Decode, DeserializeFromStr, Encode, PartialEq, SerializeDisplay)]
pub(crate) enum Time {
/// A year.
Expand Down
2 changes: 1 addition & 1 deletion src/totals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::*;
///
/// `files + directories` and `file_size + directory_size` must be less than
/// 2<sup>64</sup>.
#[allow(clippy::arbitrary_source_item_ordering)]
#[expect(clippy::arbitrary_source_item_ordering)]
#[derive(Clone, Copy, Debug, Decode, Default, Encode, Json, PartialEq, Serialize)]
#[deco(validate)]
pub struct Totals {
Expand Down
Loading