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"
1111rust-version = " 1.71.0"
1212
1313# 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)' ] }
1417
1518[profile .release ]
1619lto = " fat"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl TableCollection {
8383 ///
8484 /// Negative sequence lengths are errors:
8585 ///
86- /// ```{ should_panic}
86+ /// ```should_panic
8787 /// let tables = tskit::TableCollection::new(-55.0).unwrap();
8888 /// ```
8989 pub fn new < P : Into < Position > > ( sequence_length : P ) -> Result < Self , TskitError > {
@@ -1382,10 +1382,10 @@ impl TableCollection {
13821382 /// # Return value
13831383 /// - `Ok(None)`: when truncation leads to empty edge table.
13841384 /// - `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.
13861386 /// - `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.
13891389 ///
13901390 /// # Notes
13911391 ///
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ impl TreeSequence {
220220 ///
221221 /// A `Tree`'s lifetime is tied to that of its tree sequence:
222222 ///
223- /// ```{ compile_fail}
223+ /// ```compile_fail
224224 /// # use streaming_iterator::StreamingIterator;
225225 /// # use streaming_iterator::DoubleEndedStreamingIterator;
226226 /// # let mut tables = tskit::TableCollection::new(1000.).unwrap();
@@ -368,10 +368,10 @@ impl TreeSequence {
368368 /// # Return value
369369 /// - `Ok(None)`: when truncation leads to empty edge table.
370370 /// - `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.
372372 /// - `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.
375375 ///
376376 /// # Notes
377377 ///
You can’t perform that action at this time.
0 commit comments