Skip to content

Commit aaae946

Browse files
committed
persnickety clippy
1 parent c5ddce3 commit aaae946

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dag.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub struct NodeEntry<'a> {
342342
index: NodeIndex,
343343
}
344344

345-
impl<'a> NodeEntry<'a> {
345+
impl NodeEntry<'_> {
346346
pub fn name(&self) -> &NodeName {
347347
self.internal.node_name().unwrap()
348348
}
@@ -473,7 +473,7 @@ impl SagaDag {
473473
/// something like `dot -Tpng -o graph.png graph.out` to produce `graph.png`, a
474474
/// visual representation of the saga graph.
475475
pub struct DagDot<'a>(&'a Graph<InternalNode, (), Directed, u32>);
476-
impl<'a> fmt::Display for DagDot<'a> {
476+
impl fmt::Display for DagDot<'_> {
477477
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
478478
let config = &[dot::Config::EdgeNoLabel];
479479
let dot = dot::Dot::with_config(&self.0, config);

src/saga_log.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub struct SagaLogPretty<'a> {
291291
log: &'a SagaLog,
292292
}
293293

294-
impl<'a> fmt::Debug for SagaLogPretty<'a> {
294+
impl fmt::Debug for SagaLogPretty<'_> {
295295
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
296296
write!(f, "SAGA LOG:\n")?;
297297
write!(f, "saga id: {}\n", self.log.saga_id)?;

0 commit comments

Comments
 (0)