Skip to content

Commit

Permalink
Fix lints firing since rust 1.80 (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU authored Jul 30, 2024
1 parent 06a8348 commit 40b8a94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fn main() {
if let Some(true) = version_check::supports_feature("coverage_attribute") {
println!("cargo:rustc-cfg=has_coverage_attribute");
}
println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)");
generate_self_schema();
println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());
}
3 changes: 2 additions & 1 deletion src/serializers/ob_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ impl ObTypeLookup {
/// We care about order here since:
/// 1. we pay a price for each `isinstance` call
/// 2. some types are subclasses of others, e.g. `bool` is a subclass of `int`
/// hence we put common types first
/// hence we put common types first
///
/// In addition, some types have inheritance set as a bitflag on the type object:
/// https://github.com/python/cpython/blob/v3.12.0rc1/Include/object.h#L546-L553
/// Hence they come first
Expand Down

0 comments on commit 40b8a94

Please sign in to comment.