Skip to content

Commit

Permalink
style: rustc 1.83.0 lints
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Dec 2, 2024
1 parent c2b7f11 commit 8bc2677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions demes-forward/src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ migrations:
panic!();
}
graph.update_state(150).unwrap(); // last gen
assert!(graph.child_demes.first().is_none());
assert!(graph.child_demes.is_empty());
if let Some(deme) = graph.parent_demes.first() {
assert_eq!(
deme.current_size().unwrap(),
Expand Down Expand Up @@ -1386,7 +1386,7 @@ migrations:
panic!();
}
graph.update_state(150).unwrap(); // last gen
assert!(graph.child_demes.first().is_none());
assert!(graph.child_demes.is_empty());
if let Some(deme) = graph.parent_demes.first() {
assert_eq!(
deme.current_size().unwrap(),
Expand Down Expand Up @@ -1443,7 +1443,7 @@ migrations:
panic!();
}
graph.update_state(150).unwrap(); // last gen
assert!(graph.child_demes.first().is_none());
assert!(graph.child_demes.is_empty());
if let Some(deme) = graph.parent_demes.first() {
assert_eq!(
deme.current_size().unwrap(),
Expand Down
4 changes: 2 additions & 2 deletions demes/src/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub enum InputFormat<'graph> {
Toml(&'graph str),
}

impl<'graph> InputFormat<'graph> {
impl InputFormat<'_> {
/// Get the input data as [str]
pub fn to_str(&self) -> &str {
match self {
Expand Down Expand Up @@ -201,7 +201,7 @@ pub enum DemeId<'name> {
Name(&'name str),
}

impl<'name> From<usize> for DemeId<'name> {
impl From<usize> for DemeId<'_> {
fn from(value: usize) -> Self {
Self::Index(value)
}
Expand Down

0 comments on commit 8bc2677

Please sign in to comment.