about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/comments/src/main.rs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-11 16:07:52 +0100
committerSoispha <soispha@vhack.eu>2024-02-11 16:07:52 +0100
commit9ddb7d8548968a27ae222a74de5f1a6b953c485f (patch)
tree6097d7b959f427f18ab67d96ce776be69729a56a /sys/nixpkgs/pkgs/comments/src/main.rs
parentfix(hm/conf/taskwarrior): Correctly parse project.nix file (diff)
downloadnixos-config-9ddb7d8548968a27ae222a74de5f1a6b953c485f.tar.gz
nixos-config-9ddb7d8548968a27ae222a74de5f1a6b953c485f.zip
fix(sys/nixpkgs/pkgs/comments): Allow unknown comment author
Diffstat (limited to 'sys/nixpkgs/pkgs/comments/src/main.rs')
-rw-r--r--sys/nixpkgs/pkgs/comments/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nixpkgs/pkgs/comments/src/main.rs b/sys/nixpkgs/pkgs/comments/src/main.rs
index 12a89b7e..6e4f72e9 100644
--- a/sys/nixpkgs/pkgs/comments/src/main.rs
+++ b/sys/nixpkgs/pkgs/comments/src/main.rs
@@ -100,7 +100,7 @@ impl Display for Comments {
             let ident = &(0..ident_count).map(|_| " ").collect::<String>();
             let value = &comment.value;
 
-            f.write_str(&ident)?;
+            f.write_str(ident)?;
 
             if value.author_is_uploader {
                 c!("91;1", f);
@@ -143,7 +143,7 @@ impl Display for Comments {
             // c!("0", f);
 
             f.write_str(":\n")?;
-            f.write_str(&ident)?;
+            f.write_str(ident)?;
 
             f.write_str(&value.text.replace('\n', &format!("\n{}", ident)))?;
             f.write_str("\n")?;
@@ -220,7 +220,7 @@ fn main() -> anyhow::Result<()> {
                     &reply
                     .value
                     .text[full_match.end()..];
-                let text: &str = &text.trim().trim_matches('\u{200b}');
+                let text: &str = text.trim().trim_matches('\u{200b}');
 
                 let replyee = replyee_match.get(1).expect("This should exist").as_str();