Skip to content

Commit d559709

Browse files
author
Lars Wirzenius
committed
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. rust-lang/rust#82730 https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level
1 parent 7bde618 commit d559709

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ipc/src/core.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
//! # }
1818
//! ```
1919
20-
#![doc(html_favicon_url = "https://docs.sequoia-pgp.org/favicon.png")]
21-
#![doc(html_logo_url = "https://docs.sequoia-pgp.org/logo.svg")]
2220
#![warn(missing_docs)]
2321

24-
2522
use std::io;
2623
use std::path::{Path, PathBuf};
2724

@@ -102,7 +99,7 @@ impl Context {
10299
/// `.build()` in order to turn it into a Context.
103100
pub fn configure() -> Config {
104101
Config(Context {
105-
home: PathBuf::from(""), // Defer computation of default.
102+
home: PathBuf::from(""), // Defer computation of default.
106103
lib: prefix().join("lib").join("sequoia"),
107104
ipc_policy: IPCPolicy::Robust,
108105
ephemeral: false,
@@ -183,10 +180,9 @@ impl Config {
183180
c.cleanup = true;
184181
} else {
185182
if home_not_set {
186-
c.home =
187-
dirs::home_dir().ok_or_else(||
188-
anyhow::anyhow!("Failed to get users home directory"))?
189-
.join(".sequoia");
183+
c.home = dirs::home_dir()
184+
.ok_or_else(|| anyhow::anyhow!("Failed to get users home directory"))?
185+
.join(".sequoia");
190186
}
191187
}
192188
Ok(c)
@@ -250,7 +246,6 @@ pub enum Error {
250246
IoError(#[from] io::Error),
251247
}
252248

253-
254249
/* IPC policy. */
255250

256251
/// IPC policy for Sequoia.
@@ -315,7 +310,6 @@ impl<'a> From<&'a IPCPolicy> for u8 {
315310
}
316311
}
317312

318-
319313
// XXX: TryFrom would be nice.
320314
impl From<u8> for IPCPolicy {
321315
fn from(policy: u8) -> Self {

0 commit comments

Comments
 (0)