aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-02 01:23:33 +0000
committerFuwn <[email protected]>2023-04-02 01:23:33 +0000
commitb2858ff245f0f1b8a16ff9ca9180eb305c5e4fee (patch)
treeddabcc44c720d835910e7759beeb95b906956772 /examples
parentfeat(router): expose response to post-route callback (diff)
downloadwindmark-b2858ff245f0f1b8a16ff9ca9180eb305c5e4fee.tar.xz
windmark-b2858ff245f0f1b8a16ff9ca9180eb305c5e4fee.zip
refactor(src): clean up string generics
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index e5dcd52..ef2813c 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -124,11 +124,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
);
router.mount(
"/time",
- success!(std::time::UNIX_EPOCH
- .elapsed()
- .unwrap()
- .as_nanos()
- .to_string()),
+ success!(std::time::UNIX_EPOCH.elapsed().unwrap().as_nanos()),
);
router.mount(
"/query",