summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-03 13:36:42 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-03 13:38:08 +0300
commitd559709fd7497aae9f5a65f762bcc532bf04749d (patch)
tree45a3258e6a33f10509f084a9b949dd52e385a0a8 /ipc
parent7bde618ccdd7d03cdb115f558e919219b0910319 (diff)
fix: drop unnecessary and to-be-invalid #[doc] attributes
This fixes a build failure under Windows. It seems the two options will only work at the crate level in the future so the compiler warns about them now, and will fail build later. In CI, warnings seem to fail the build already. https://github.com/rust-lang/rust/issues/82730 https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level
Diffstat (limited to 'ipc')
-rw-r--r--ipc/src/core.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/ipc/src/core.rs b/ipc/src/core.rs
index 0b43a9ce..cb9abf2c 100644
--- a/ipc/src/core.rs
+++ b/ipc/src/core.rs
@@ -17,11 +17,8 @@
//! # }
//! ```
-#![doc(html_favicon_url = "https://docs.sequoia-pgp.org/favicon.png")]
-#![doc(html_logo_url = "https://docs.sequoia-pgp.org/logo.svg")]
#![warn(missing_docs)]
-
use std::io;
use std::path::{Path, PathBuf};
@@ -102,7 +99,7 @@ impl Context {
/// `.build()` in order to turn it into a Context.
pub fn configure() -> Config {
Config(Context {
- home: PathBuf::from(""), // Defer computation of default.
+ home: PathBuf::from(""), // Defer computation of default.
lib: prefix().join("lib").join("sequoia"),
ipc_policy: IPCPolicy::Robust,
ephemeral: false,
@@ -183,10 +180,9 @@ impl Config {
c.cleanup = true;
} else {
if home_not_set {
- c.home =
- dirs::home_dir().ok_or_else(||
- anyhow::anyhow!("Failed to get users home directory"))?
- .join(".sequoia");
+ c.home = dirs::home_dir()
+ .ok_or_else(|| anyhow::anyhow!("Failed to get users home directory"))?
+ .join(".sequoia");
}
}
Ok(c)
@@ -250,7 +246,6 @@ pub enum Error {
IoError(#[from] io::Error),
}
-
/* IPC policy. */
/// IPC policy for Sequoia.
@@ -315,7 +310,6 @@ impl<'a> From<&'a IPCPolicy> for u8 {
}
}
-
// XXX: TryFrom would be nice.
impl From<u8> for IPCPolicy {
fn from(policy: u8) -> Self {