-
-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading deps, running clippy fix on nightly 1.55.0 #1638
Conversation
CI timed out on federation tests, I restarted it. |
@asonix I might need your help with this one, as upgrading your
|
you can't upgraded to 0.9.0 without upgrading actix-web to the 4.0 betas. go back to the older version |
oh wait, you did... i'll take a look |
wait a sec, you upgraded tokio & actix-rt, but you didn't upgrade actix or actix-web, and you're using you gotta do a full upgrade or not at all |
Thx, I'll try this. |
@asonix , another issue, with the newest version of https://github.com/lemmynet/lemmy/blob/upgrade_deps_4/crates/apub_receive/src/routes.rs#L78
|
@dessalines update http-signature-normalization-actix to |
crates/routes/src/feeds.rs
Outdated
info: web::Query<Params>, | ||
context: web::Data<LemmyContext>, | ||
) -> Result<HttpResponse, Error> { | ||
let sort_type = get_sort_type(info).map_err(ErrorBadRequest)?; | ||
|
||
let req_type: String = req.match_info().get("type").unwrap().parse().unwrap(); | ||
let param: String = req.match_info().get("name").unwrap().parse().unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please handle this without unwrap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K got it.
info: web::Query<Params>, | ||
context: web::Data<LemmyContext>, | ||
) -> Result<HttpResponse, Error> { | ||
let sort_type = get_sort_type(info).map_err(ErrorBadRequest)?; | ||
|
||
let req_type: String = req.match_info().get("type").unwrap_or("none").parse()?; | ||
let param: String = req.match_info().get("name").unwrap_or("none").parse()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm that seems pretty much the same as before. Why did you remove the web::Path at all, did they remove that type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep they removed that tuple and made it private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn
* Upgrading deps, running clippy fix on nightly 1.55.0 * Running clippy --fix * Trying to fix transform * Trying to fix another transform * Upgrading http-signature-normalization-actix * Fix app_data * Fix pictrs uploading * Fix unwrap
No description provided.