Skip to content

Commit

Permalink
"Update axum paths to 0.8 syntax" (leptos-rs#3555)
Browse files Browse the repository at this point in the history
* Update axum paths to 0.8 syntax

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
zakstucke and autofix-ci[bot] authored Feb 7, 2025
1 parent 8f74a6d commit 287fc47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion integrations/axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1694,12 +1694,15 @@ impl AxumPath for Vec<PathSegment> {
match segment {
PathSegment::Static(s) => path.push_str(s),
PathSegment::Param(s) => {
path.push(':');
path.push('{');
path.push_str(s);
path.push('}');
}
PathSegment::Splat(s) => {
path.push('{');
path.push('*');
path.push_str(s);
path.push('}');
}
PathSegment::Unit => {}
PathSegment::OptionalParam(_) => {
Expand Down
7 changes: 2 additions & 5 deletions tachys/src/view/static_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ use super::{
};
use crate::{
html::attribute::{
any_attribute::AnyAttribute,
maybe_next_attr_erasure_macros::{
next_attr_combine, next_attr_output_type,
},
Attribute, AttributeKey, AttributeValue, NextAttribute,
any_attribute::AnyAttribute, Attribute, AttributeKey, AttributeValue,
NextAttribute,
},
hydration::Cursor,
renderer::{CastFrom, Rndr},
Expand Down

0 comments on commit 287fc47

Please sign in to comment.