From b17af2ad5582d8c13e78109b59716cbf0d23c14c Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Thu, 03 Apr 2025 14:05:25 +0700 Subject: [PATCH] Update flake inputs --- flake.lock | 42 ++++++++++++++++++++++++++++-------------- src/git.rs | 14 ++++++++------ src/main.rs | 4 ++-- src/syntax_highlight.rs | 2 +- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/flake.lock b/flake.lock index dbf5152..d063285 100644 --- a/flake.lock +++ a/flake.lock @@ -1,13 +1,13 @@ { "nodes": { "advisory-db": { "flake": false, "locked": { - "lastModified": 1727353582, - "narHash": "sha256-2csMEEOZhvowVKZNBHk1kMJqk72ZMrPj9LQYCzP6EKs=", + "lastModified": 1743497737, + "narHash": "sha256-aIyfoxIds4Y54bZ3atFv1YxSvWpXgmy+BUtykv4wBgk=", "owner": "rustsec", "repo": "advisory-db", - "rev": "cb905e6e405834bdff1eb1e20c9b10edb5403889", + "rev": "758fb16a52d7b9776a94856bd9d4ef6140d4946e", "type": "github" }, "original": { @@ -18,11 +18,11 @@ }, "crane": { "locked": { - "lastModified": 1727316705, - "narHash": "sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE=", + "lastModified": 1743649204, + "narHash": "sha256-uourC72krB5YdGzpHaXOUBXaORkcabPNF+H7sMvZKsw=", "owner": "ipetkov", "repo": "crane", - "rev": "5b03654ce046b5167e7b0bccbd8244cb56c16f0e", + "rev": "8b9ee4e59a737b1dbefbd398caae8595ecffcf6a", "type": "github" }, "original": { @@ -54,11 +54,11 @@ ] }, "locked": { - "lastModified": 1731952509, - "narHash": "sha256-p4gB3Rhw8R6Ak4eMl8pqjCPOLCZRqaehZxdZ/mbFClM=", + "lastModified": 1737420293, + "narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=", "owner": "nix-community", "repo": "nix-github-actions", - "rev": "7b5f051df789b6b20d259924d349a9ba3319b226", + "rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9", "type": "github" }, "original": { @@ -69,11 +69,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1727731257, - "narHash": "sha256-nXnsrLv8bELJehkhjiNHRUbNzi2VSL6CHTTlKz5JZZI=", + "lastModified": 1743660308, + "narHash": "sha256-bXfYczbPBb+vCJ9P1zfwzR6UoIIHrLV3vN9NOozXNo8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "78b848881f3b58b3c04c005a7999800d013fa9b7", + "rev": "30aa8ad8bf9a0d3a1c200380ddd51012dae4c615", "type": "github" }, "original": { @@ -85,11 +85,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1726871744, - "narHash": "sha256-V5LpfdHyQkUF7RfOaDPrZDP+oqz88lTJrMT1+stXNwo=", + "lastModified": 1735554305, + "narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a1d92660c6b3b7c26fb883500a80ea9d33321be2", + "rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd", "type": "github" }, "original": { @@ -130,11 +130,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1727431250, - "narHash": "sha256-uGRlRT47ecicF9iLD1G3g43jn2e+b5KaMptb59LHnvM=", + "lastModified": 1743589519, + "narHash": "sha256-iBzr7Zb11nQxwX90bO1+Bm1MGlhMSmu4ixgnQFB+j4E=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "879b29ae9a0378904fbbefe0dadaed43c8905754", + "rev": "18bed671738e36c5504e188aadc18b7e2a6e408f", "type": "github" }, "original": { @@ -148,11 +148,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { diff --git a/src/git.rs b/src/git.rs index f6f92f8..8a2dffb 100644 --- a/src/git.rs +++ a/src/git.rs @@ -523,7 +523,7 @@ path: BString, } -impl<'a> ArchivalVisitor<'a> { +impl ArchivalVisitor<'_> { fn pop_element(&mut self) { if let Some(pos) = self.path.rfind_byte(b'/') { self.path.resize(pos, 0); @@ -540,7 +540,7 @@ } } -impl<'a> gix::traverse::tree::Visit for ArchivalVisitor<'a> { +impl gix::traverse::tree::Visit for ArchivalVisitor<'_> { fn pop_front_tracked_path_and_set_current(&mut self) { self.path = self .path_deque @@ -1010,7 +1010,7 @@ formatter: F, } -impl<'a, F: DiffFormatter + Callback> DiffBuilder<'a, F> { +impl DiffBuilder<'_, F> { #[allow(clippy::too_many_lines)] fn handle( &mut self, @@ -1191,15 +1191,15 @@ fn write(&self, output: &mut String, class: &str, data: &str) { write!(output, r#""#).unwrap(); format_file_inner(output, data, FileIdentifier::Path(self.path), false).unwrap(); - write!(output, r#""#).unwrap(); + output.push_str(""); } } -impl<'a> DiffFormatter for SyntaxHighlightedDiffFormatter<'a> { +impl DiffFormatter for SyntaxHighlightedDiffFormatter<'_> { fn file_header(&self, output: &mut String, data: Arguments<'_>) { write!(output, r#""#).unwrap(); write!(output, "{data}").unwrap(); - writeln!(output, r#""#).unwrap(); + output.push_str("\n"); } fn binary( @@ -1214,7 +1214,7 @@ } } -impl<'a> Callback for SyntaxHighlightedDiffFormatter<'a> { +impl Callback for SyntaxHighlightedDiffFormatter<'_> { fn addition(&mut self, data: &str, dst: &mut String) { self.write(dst, "add-line", data); } diff --git a/src/main.rs b/src/main.rs index e803443..2062691 100644 --- a/src/main.rs +++ a/src/main.rs @@ -142,7 +142,7 @@ .unwrap() .build_css(); let css = Box::leak( - format!(r#"@media (prefers-color-scheme: light){{{theme}}}"#) + format!("@media (prefers-color-scheme: light){{{theme}}}") .into_boxed_str() .into_boxed_bytes(), ); @@ -155,7 +155,7 @@ .unwrap() .build_css(); let css = Box::leak( - format!(r#"@media (prefers-color-scheme: dark){{{theme}}}"#) + format!("@media (prefers-color-scheme: dark){{{theme}}}") .into_boxed_str() .into_boxed_bytes(), ); diff --git a/src/syntax_highlight.rs b/src/syntax_highlight.rs index 065194d..cd0ce6a 100644 --- a/src/syntax_highlight.rs +++ a/src/syntax_highlight.rs @@ -145,7 +145,7 @@ output: &mut dyn IoWrite, _attributes: HashMap, ) -> std::io::Result<()> { - write!(output, r#"
"#)
+        write!(output, "
")
     }
 
     fn write_code_tag(
--
rgit 0.1.4