File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,17 @@ jobs:
113
113
rust-target : " i686-pc-windows-msvc" ,
114
114
},
115
115
]
116
+ include :
117
+ # Run beta clippy as a way to detect any incoming lints which may affect downstream users
118
+ - rust : beta
119
+ platform :
120
+ {
121
+ os : " ubuntu-latest" ,
122
+ python-architecture : " x64" ,
123
+ rust-target : " x86_64-unknown-linux-gnu" ,
124
+ }
116
125
name : clippy/${{ matrix.platform.rust-target }}/${{ matrix.rust }}
126
+ continue-on-error : ${{ matrix.platform.rust != 'stable' }}
117
127
steps :
118
128
- uses : actions/checkout@v4
119
129
- uses : dtolnay/rust-toolchain@master
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ pub(crate) mod pystate;
31
31
pub ( crate ) mod pythonrun;
32
32
// skipped sysmodule.h
33
33
pub ( crate ) mod floatobject;
34
- #[ cfg( not( PyPy ) ) ]
35
34
pub ( crate ) mod pyframe;
36
35
pub ( crate ) mod tupleobject;
37
36
pub ( crate ) mod unicodeobject;
@@ -60,7 +59,7 @@ pub use self::object::*;
60
59
pub use self :: objimpl:: * ;
61
60
pub use self :: pydebug:: * ;
62
61
pub use self :: pyerrors:: * ;
63
- #[ cfg( not ( PyPy ) ) ]
62
+ #[ cfg( Py_3_11 ) ]
64
63
pub use self :: pyframe:: * ;
65
64
#[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
66
65
pub use self :: pylifecycle:: * ;
@@ -69,4 +68,5 @@ pub use self::pystate::*;
69
68
pub use self :: pythonrun:: * ;
70
69
pub use self :: tupleobject:: * ;
71
70
pub use self :: unicodeobject:: * ;
71
+ #[ cfg( not( PyPy ) ) ]
72
72
pub use self :: weakrefobject:: * ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ mod test_serde {
66
66
assert_eq ! ( user. username, "danya" ) ;
67
67
assert ! ( user. group. is_none( ) ) ;
68
68
assert_eq ! ( user. friends. len( ) , 1usize ) ;
69
- let friend = user. friends . get ( 0 ) . unwrap ( ) ;
69
+ let friend = user. friends . first ( ) . unwrap ( ) ;
70
70
71
71
Python :: with_gil ( |py| {
72
72
assert_eq ! ( friend. borrow( py) . username, "friend" ) ;
You can’t perform that action at this time.
0 commit comments