소스 검색

chore: clippy

skoupidi 2 년 전
부모
커밋
4b12c9de4f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      bin/darkirc/src/irc/services/nickserv.rs

+ 3 - 3
bin/darkirc/src/irc/services/nickserv.rs

@@ -55,7 +55,7 @@ For more information on a NickServ command, type:
 /// NickServ implementation used for IRC account management
 /// NickServ implementation used for IRC account management
 pub struct NickServ {
 pub struct NickServ {
     /// Client username
     /// Client username
-    pub username: Arc<RwLock<String>>,
+    pub _username: Arc<RwLock<String>>,
     /// Client nickname
     /// Client nickname
     pub nickname: Arc<RwLock<String>>,
     pub nickname: Arc<RwLock<String>>,
     /// Pointer to parent `IrcServer`
     /// Pointer to parent `IrcServer`
@@ -66,11 +66,11 @@ impl NickServ {
     /// Instantiate a new `NickServ` for a client. This should be called after
     /// Instantiate a new `NickServ` for a client. This should be called after
     /// the user/nick are successfully registered.
     /// the user/nick are successfully registered.
     pub async fn new(
     pub async fn new(
-        username: Arc<RwLock<String>>,
+        _username: Arc<RwLock<String>>,
         nickname: Arc<RwLock<String>>,
         nickname: Arc<RwLock<String>>,
         server: Arc<IrcServer>,
         server: Arc<IrcServer>,
     ) -> Result<Self> {
     ) -> Result<Self> {
-        Ok(Self { username, nickname, server })
+        Ok(Self { _username, nickname, server })
     }
     }
 
 
     /// Handle a `NickServ` query. This is the main command handler.
     /// Handle a `NickServ` query. This is the main command handler.