Skip to content

Commit

Permalink
Merge pull request #512 from xrelkd/build/rustc
Browse files Browse the repository at this point in the history
Update `Rust` to `1.80`
  • Loading branch information
xrelkd authored Aug 10, 2024
2 parents b18734e + 83ef678 commit d26ad58
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ clipcat-proto = { path = "./crates/proto" }
clipcat-server = { path = "./crates/server" }

[workspace.lints.rust]
box_pointers = "allow"
async_fn_in_trait = "allow"
box_pointers = "allow"

# TODO: deny `unused_crate_dependencies` after https://github.com/rust-lang/rust/issues/95513 being solved
unused_crate_dependencies = "allow"
Expand All @@ -133,13 +134,12 @@ deprecated_in_future = "deny"
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "deny"
ffi_unwind_calls = "deny"
keyword_idents = "deny"
keyword_idents = { level = "deny", priority = -1 }
let_underscore_drop = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_abi = "deny"
non_ascii_idents = "deny"
pointer_structural_match = "deny"
rust_2021_incompatible_closure_captures = "deny"
rust_2021_incompatible_or_patterns = "deny"
rust_2021_prefixes_incompatible_syntax = "deny"
Expand Down Expand Up @@ -193,7 +193,6 @@ hidden_glob_reexports = "deny"
improper_ctypes = "deny"
improper_ctypes_definitions = "deny"
incomplete_features = "deny"
indirect_structural_match = "deny"
inline_no_sanitize = "deny"
internal_features = "deny"
invalid_doc_attributes = "deny"
Expand Down Expand Up @@ -221,7 +220,8 @@ path_statements = "deny"
private_bounds = "deny"
private_interfaces = "deny"
redundant_semicolons = "deny"
refining_impl_trait = "deny"
refining_impl_trait = { level = "deny", priority = -1 }
renamed_and_removed_lints = "deny"
repr_transparent_external_private_fields = "deny"
semicolon_in_expressions_from_macros = "deny"
special_module_name = "deny"
Expand Down Expand Up @@ -261,7 +261,6 @@ unused_parens = "deny"
unused_unsafe = "deny"
unused_variables = "deny"
useless_ptr_null_checks = "deny"
where_clauses_object_safety = "deny"
while_true = "deny"

[workspace.lints.clippy]
Expand Down
3 changes: 1 addition & 2 deletions crates/clipboard/src/listener/x11/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ impl Context {
event.property,
xproto::AtomEnum::NONE,
0,
u32::try_from(1024 * std::mem::size_of::<xproto::Atom>())
.unwrap_or(u32::MAX),
u32::try_from(1024 * size_of::<xproto::Atom>()).unwrap_or(u32::MAX),
)
.context(error::GetPropertySnafu)?
.reply()
Expand Down
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d26ad58

Please sign in to comment.