diff options
| author | Fuwn <[email protected]> | 2023-04-02 01:23:33 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-02 01:23:33 +0000 |
| commit | b2858ff245f0f1b8a16ff9ca9180eb305c5e4fee (patch) | |
| tree | ddabcc44c720d835910e7759beeb95b906956772 /examples | |
| parent | feat(router): expose response to post-route callback (diff) | |
| download | windmark-b2858ff245f0f1b8a16ff9ca9180eb305c5e4fee.tar.xz windmark-b2858ff245f0f1b8a16ff9ca9180eb305c5e4fee.zip | |
refactor(src): clean up string generics
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 6 |
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", |