unix-systems support
This commit is contained in:
parent
9bf2cdac42
commit
f77bc774ae
1 changed files with 1 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ use std::{
|
|||
path::PathBuf,
|
||||
time
|
||||
};
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::models::client::{commands::Commands, payload::OpCode, payload::Payload};
|
||||
use crate::models::error::Error as ErrorMsg;
|
||||
|
|
@ -75,7 +74,7 @@ impl DiscordClient {
|
|||
}
|
||||
}
|
||||
|
||||
fn socket(&mut self) -> &mut PipeClient {
|
||||
fn socket(&mut self) -> &mut UnixStream {
|
||||
match &mut self.socket {
|
||||
Some(socket) => socket,
|
||||
None => panic!("Socket is not initialized"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue