File tree 5 files changed +12
-6
lines changed
5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 5
5
},
6
6
{
7
7
"pattern" : " ^https://twitter.com/artichokeruby"
8
+ },
9
+ {
10
+ "pattern" : " ^https://www.reddit.com/r/rust/"
8
11
}
9
12
],
10
13
"replacementPatterns" : [],
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cactusref"
3
- version = " 0.4 .0" # remember to set `html_root_url` in `src/lib.rs`.
3
+ version = " 0.5 .0" # remember to set `html_root_url` in `src/lib.rs`.
4
4
authors = [
" Ryan Lopopolo <[email protected] >" ]
5
5
license = " MIT"
6
6
edition = " 2021"
7
- rust-version = " 1.56 .0"
7
+ rust-version = " 1.77 .0"
8
8
readme = " README.md"
9
9
repository = " https://github.com/artichoke/cactusref"
10
10
documentation = " https://docs.rs/cactusref"
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Add this to your `Cargo.toml`:
52
52
53
53
``` toml
54
54
[dependencies ]
55
- cactusref = " 0.4 .0"
55
+ cactusref = " 0.5 .0"
56
56
```
57
57
58
58
CactusRef is mostly a drop-in replacement for ` std::rc::Rc ` , which can be used
Original file line number Diff line number Diff line change 7
7
slice_ptr_get
8
8
) ]
9
9
#![ allow( incomplete_features) ]
10
+ #![ allow( internal_features) ]
10
11
#![ warn( clippy:: all) ]
11
12
#![ warn( clippy:: pedantic) ]
12
13
#![ warn( clippy:: cargo) ]
13
14
#![ allow( clippy:: cast_possible_wrap) ]
14
15
#![ allow( clippy:: inline_always) ]
15
16
#![ allow( clippy:: let_underscore_untyped) ]
17
+ #![ allow( clippy:: manual_let_else) ]
16
18
#![ allow( clippy:: missing_panics_doc) ]
17
19
#![ allow( clippy:: option_if_let_else) ]
18
20
#![ allow( clippy:: needless_pass_by_ref_mut) ]
126
128
//! [`CoerceUnsized`]: core::ops::CoerceUnsized
127
129
//! [`DispatchFromDyn`]: core::ops::DispatchFromDyn
128
130
129
- #![ doc( html_root_url = "https://docs.rs/cactusref/0.4 .0" ) ]
131
+ #![ doc( html_root_url = "https://docs.rs/cactusref/0.5 .0" ) ]
130
132
#![ no_std]
131
133
132
134
// Ensure code blocks in README.md compile
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ use crate::link::Links;
261
261
262
262
#[ cfg( test) ]
263
263
#[ allow( clippy:: redundant_clone) ]
264
+ #[ allow( clippy:: uninlined_format_args) ]
264
265
mod tests;
265
266
266
267
// This is repr(C) to future-proof against possible field-reordering, which
@@ -1005,7 +1006,7 @@ impl<T> Rc<T> {
1005
1006
1006
1007
// Copy value as bytes
1007
1008
ptr:: copy_nonoverlapping (
1008
- ( box_ptr as * const T ) . cast :: < u8 > ( ) ,
1009
+ box_ptr. cast_const ( ) . cast :: < u8 > ( ) ,
1009
1010
ptr:: addr_of_mut!( ( * ptr) . value) . cast :: < u8 > ( ) ,
1010
1011
value_size,
1011
1012
) ;
@@ -1507,7 +1508,7 @@ impl<T> Weak<T> {
1507
1508
pub unsafe fn from_raw ( ptr : * const T ) -> Self {
1508
1509
// See Weak::as_ptr for context on how the input pointer is derived.
1509
1510
1510
- let ptr = if is_dangling ( ptr as * mut T ) {
1511
+ let ptr = if is_dangling ( ptr. cast_mut ( ) ) {
1511
1512
// This is a dangling Weak.
1512
1513
ptr as * mut RcBox < T >
1513
1514
} else {
You can’t perform that action at this time.
0 commit comments