File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ repository = "https://github.com/tskit-dev/tskit-rust"
11
11
rust-version = " 1.71.0"
12
12
13
13
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
+ [lints .rust ]
15
+ # Added for rust 1.80.0
16
+ unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(doc_cfg)' ] }
14
17
15
18
[profile .release ]
16
19
lto = " fat"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl TableCollection {
83
83
///
84
84
/// Negative sequence lengths are errors:
85
85
///
86
- /// ```{ should_panic}
86
+ /// ```should_panic
87
87
/// let tables = tskit::TableCollection::new(-55.0).unwrap();
88
88
/// ```
89
89
pub fn new < P : Into < Position > > ( sequence_length : P ) -> Result < Self , TskitError > {
@@ -1382,10 +1382,10 @@ impl TableCollection {
1382
1382
/// # Return value
1383
1383
/// - `Ok(None)`: when truncation leads to empty edge table.
1384
1384
/// - `Ok(Some(TableCollection))`: when trunction is successfully performed
1385
- /// and results in non-empty edge table. The table collection is sorted.
1385
+ /// and results in non-empty edge table. The table collection is sorted.
1386
1386
/// - `Error(TskitError)`: Any errors from the C API propagate. An
1387
- /// [TskitError::RangeError] will occur when `intervals` are not
1388
- /// sorted.
1387
+ /// [TskitError::RangeError] will occur when `intervals` are not
1388
+ /// sorted.
1389
1389
///
1390
1390
/// # Notes
1391
1391
///
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ impl TreeSequence {
220
220
///
221
221
/// A `Tree`'s lifetime is tied to that of its tree sequence:
222
222
///
223
- /// ```{ compile_fail}
223
+ /// ```compile_fail
224
224
/// # use streaming_iterator::StreamingIterator;
225
225
/// # use streaming_iterator::DoubleEndedStreamingIterator;
226
226
/// # let mut tables = tskit::TableCollection::new(1000.).unwrap();
@@ -368,10 +368,10 @@ impl TreeSequence {
368
368
/// # Return value
369
369
/// - `Ok(None)`: when truncation leads to empty edge table.
370
370
/// - `Ok(Some(TableCollection))`: when trunction is successfully performed
371
- /// and results in non-empty edge table. The tables are sorted.
371
+ /// and results in non-empty edge table. The tables are sorted.
372
372
/// - `Error(TskitError)`: Any errors from the C API propagate. An
373
- /// [TskitError::RangeError] will occur when `intervals` are not
374
- /// sorted.
373
+ /// [TskitError::RangeError] will occur when `intervals` are not
374
+ /// sorted.
375
375
///
376
376
/// # Notes
377
377
///
You can’t perform that action at this time.
0 commit comments