Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Dec 13, 2023
1 parent 1629c94 commit f68156f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/core/src/conn/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use http::uri::Scheme;
use tokio::net::{UnixListener as TokioUnixListener, UnixStream};
use nix::unistd::{Gid, chown, Uid};

use crate::async_trait;
use crate::{Error, async_trait};
use crate::conn::{Holding, HttpBuilder};
use crate::http::{HttpConnection, Version};
use crate::service::HyperHandler;
Expand Down Expand Up @@ -60,7 +60,7 @@ where
(Some(permissions), Some((uid, gid))) => {
let inner = TokioUnixListener::bind(self.path.clone())?;
set_permissions(self.path.clone(), permissions)?;
chown(self.path.as_ref().as_os_str().into(), uid, gid)?;
chown(self.path.as_ref().as_os_str().into(), uid, gid).map_err(Error::other)?;
inner
}
(Some(permissions), None) => {
Expand All @@ -70,7 +70,7 @@ where
}
(None, Some((uid, gid))) => {
let inner = TokioUnixListener::bind(self.path.clone())?;
chown(self.path.as_ref().as_os_str().into(), uid, gid)?;
chown(self.path.as_ref().as_os_str().into(), uid, gid).map_err(Error::other)?;
inner
}
(None, None) => TokioUnixListener::bind(self.path)?,
Expand Down
2 changes: 1 addition & 1 deletion crates/oapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "salvo-oapi"
version = { workspace = true }
edition = "2021"
description = "OpenApi support for Salvo web framework"
readme = { workspace = true }
readme = "./README.md"
license = { workspace = true }
documentation = "https://docs.rs/salvo-oapi/"
homepage = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions crates/oapi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# salvo-oapi

## Library to Provide a OpenAPI supports for Salvo.

This is offical crate, so you can enable it in `Cargo.toml` like this:

```toml
salvo = { version = "*", features=["oapi"] }
```

[![Docs](https://docs.rs/salvo-oapi/badge.svg)](https://docs.rs/salvo-oapi)
4 changes: 3 additions & 1 deletion crates/salvo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//! Salvo is a powerful and simple Rust web server framework. Read more: <https://salvo.rs>
//! Salvo is a powerful and simple Rust web server framework.
//!
//! Read more: <https://salvo.rs>
#![doc(html_favicon_url = "https://salvo.rs/favicon-32x32.png")]
#![doc(html_logo_url = "https://salvo.rs/images/logo.svg")]
Expand Down

0 comments on commit f68156f

Please sign in to comment.