From 29d042dd2f87bb123c1e41fbf8992638703f82a5 Mon Sep 17 00:00:00 2001 From: Brianna Bennett Date: Fri, 20 Dec 2024 16:14:10 -0800 Subject: [PATCH] Fix argument inconsistency in example documentation --- dropshot/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropshot/src/lib.rs b/dropshot/src/lib.rs index 77fdc613..cf6b10c0 100644 --- a/dropshot/src/lib.rs +++ b/dropshot/src/lib.rs @@ -1,4 +1,5 @@ // Copyright 2024 Oxide Computer Company +// Copyright 2024 Brianna Bennett //! Dropshot is a general-purpose crate for exposing REST APIs from a Rust //! program. Planned highlights include: @@ -50,7 +51,6 @@ //! use dropshot::ConfigLoggingLevel; //! use dropshot::HandlerTaskMode; //! use dropshot::ServerBuilder; -//! use std::sync::Arc; //! //! #[tokio::main] //! async fn main() -> Result<(), String> { @@ -67,7 +67,7 @@ //! // Register API functions -- see detailed example or ApiDescription docs. //! //! // Start the server. -//! let server = ServerBuilder::new(api, Arc::new(()), log) +//! let server = ServerBuilder::new(api, (), log) //! .start() //! .map_err(|error| format!("failed to start server: {}", error))?; //!