forked from MIrrors/bin
Bump dependencies
This commit is contained in:
@@ -41,7 +41,8 @@ pub fn generate_id() -> String {
|
||||
thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(6)
|
||||
.collect::<String>()
|
||||
.map(char::from)
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ pub struct BinArgs {
|
||||
max_paste_size: usize,
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
if std::env::var_os("RUST_LOG").is_none() {
|
||||
std::env::set_var("RUST_LOG", "INFO");
|
||||
@@ -162,4 +162,4 @@ fn render_template<T: Template>(req: &HttpRequest, template: T) -> Result<HttpRe
|
||||
Err(InternalServerError(Box::new(e)).into())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user