Skip to content

Commit

Permalink
Updated server_fn to 0.5.2 (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfeCub authored Nov 8, 2023
1 parent 42faecf commit 8ea7f07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/fullstack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["ui", "gui", "react", "ssr", "fullstack"]

[dependencies]
# server functions
server_fn = { version = "0.4.6", default-features = false }
server_fn = { version = "0.5.2", default-features = false }
dioxus_server_macro = { workspace = true }

# warp
Expand Down
8 changes: 0 additions & 8 deletions packages/fullstack/src/server_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ impl server_fn::ServerFunctionRegistry<()> for DioxusServerFnRegistry {
}
}

fn register(
url: &'static str,
server_function: ServerFunction,
encoding: server_fn::Encoding,
) -> Result<(), Self::Error> {
Self::register_explicit("", url, server_function, encoding)
}

/// Returns the server function registered at the given URL, or `None` if no function is registered at that URL.
fn get(url: &str) -> Option<server_fn::ServerFnTraitObj<()>> {
REGISTERED_SERVER_FUNCTIONS
Expand Down
2 changes: 1 addition & 1 deletion packages/server-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ proc-macro2 = "^1.0.63"
quote = "^1.0.26"
syn = { version = "2", features = ["full"] }
convert_case = "^0.6.0"
server_fn_macro = "^0.4.6"
server_fn_macro = "^0.5.2"

[lib]
proc-macro = true
Expand Down

0 comments on commit 8ea7f07

Please sign in to comment.