Skip to content

Commit

Permalink
style: satisfy new clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Jun 18, 2024
1 parent 14a97bc commit e51fe4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions elfo-core/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ fn lookup_vtable(protocol: &str, name: &str) -> Option<&'static MessageVTable> {
// SAFETY: this pair doesn't overlive the function.
let (protocol, name) = unsafe {
(
std::mem::transmute::<_, &'static str>(protocol),
std::mem::transmute::<_, &'static str>(name),
std::mem::transmute::<&str, &'static str>(protocol),
std::mem::transmute::<&str, &'static str>(name),
)
};

Expand Down
2 changes: 1 addition & 1 deletion elfo-dumper/src/dump_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl DumpStorage {
registry_config: DumpRegistryConfig {
// At startup we doesn't limit dumping at all.
// The dumper reconfigure the storage at startup.
max_part_count: usize::max_value(),
max_part_count: usize::MAX,
},
registries: Default::default(),
classes: Default::default(),
Expand Down

0 comments on commit e51fe4b

Please sign in to comment.