nix: update to rust-1.66

Rust 1.66.0 was announced[0].

The code fixes were all for the clippy warning regarding needless
borrows.

The doc tool now parses for HTML, so any <placeholder> now needs to
be wrapped in backticks, i.e. `<placeholder>`.

[0]: https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2022-12-16 10:54:55 +00:00
parent 39ce2f9349
commit 8d451e3d9d
11 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ impl<'a> Qualified<'a> {
/// Add a namespace.
///
/// Creates a new [`Namespaced`] by prefxing `self` with
/// "refs/namespaces/<ns>".
/// `refs/namespaces/<ns>`.
pub fn with_namespace<'b>(&self, ns: Component<'b>) -> Namespaced<'a> {
Namespaced(Cow::Owned(
IntoIterator::into_iter([lit::Refs.into(), lit::Namespaces.into(), ns])
+1 -1
View File
@@ -345,7 +345,7 @@ impl<'a> QualifiedPattern<'a> {
/// Add a namespace.
///
/// Creates a new [`NamespacedPattern`] by prefxing `self` with
/// "refs/namespaces/<ns>".
/// `refs/namespaces/<ns>`.
pub fn with_namespace<'b>(
&self,
ns: Component<'b>,