Skip to content

Commit 40b8a94

Browse files
authored
Fix lints firing since rust 1.80 (#1379)
1 parent 06a8348 commit 40b8a94

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Cargo.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn main() {
3535
if let Some(true) = version_check::supports_feature("coverage_attribute") {
3636
println!("cargo:rustc-cfg=has_coverage_attribute");
3737
}
38+
println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)");
3839
generate_self_schema();
3940
println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());
4041
}

src/serializers/ob_type.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ impl ObTypeLookup {
290290
/// We care about order here since:
291291
/// 1. we pay a price for each `isinstance` call
292292
/// 2. some types are subclasses of others, e.g. `bool` is a subclass of `int`
293-
/// hence we put common types first
293+
/// hence we put common types first
294+
///
294295
/// In addition, some types have inheritance set as a bitflag on the type object:
295296
/// https://github.com/python/cpython/blob/v3.12.0rc1/Include/object.h#L546-L553
296297
/// Hence they come first

0 commit comments

Comments
 (0)