Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Nov 26, 2024
1 parent 6dc08a0 commit 132e1c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions uniplate-derive/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ impl ParserState {
None => None,
};

if self.current_instance.is_none() {
return None;
};
self.current_instance.as_ref()?;

Some(())
}
Expand Down
10 changes: 5 additions & 5 deletions uniplate/src/intro.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**Uniplate helps you write simple, boilerplate-free operations on tree shaped data types.**

- A port of Haskell's [Uniplate](https://hackage.haskell.org/package/uniplate)
library in Rust.
library in Rust.

# Getting Started

Expand Down Expand Up @@ -191,9 +191,9 @@ The techniques implemented in this crate originate from the following:
* [The Uniplate Haskell Library](https://hackage.haskell.org/package/uniplate).

* Neil Mitchell and Colin Runciman. 2007. Uniform boilerplate and list processing. In
Proceedings of the ACM SIGPLAN workshop on Haskell workshop (Haskell '07). Association for
Computing Machinery, New York, NY, USA, 49–60. <https://doi.org/10.1145/1291201.1291208>
[(free copy)](https://www.cs.york.ac.uk/plasma/publications/pdf/MitchellRuncimanHW07.pdf)
Proceedings of the ACM SIGPLAN workshop on Haskell workshop (Haskell '07). Association for
Computing Machinery, New York, NY, USA, 49–60. <https://doi.org/10.1145/1291201.1291208>
[(free copy)](https://www.cs.york.ac.uk/plasma/publications/pdf/MitchellRuncimanHW07.pdf)

* Huet G. The Zipper. Journal of Functional Programming. 1997;7(5):549–54. <https://doi.org/10.1017/S0956796897002864>
[(free copy)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/0C058890B8A9B588F26E6D68CF0CE204/S0956796897002864a.pdf/zipper.pdf)
[(free copy)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/0C058890B8A9B588F26E6D68CF0CE204/S0956796897002864a.pdf/zipper.pdf)

0 comments on commit 132e1c3

Please sign in to comment.