summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi/src/error.rs4
-rw-r--r--ffi/src/lib.rs2
-rw-r--r--ffi/src/store.rs1
-rw-r--r--net/src/lib.rs2
-rw-r--r--store/src/lib.rs2
5 files changed, 10 insertions, 1 deletions
diff --git a/ffi/src/error.rs b/ffi/src/error.rs
index 06aa05f9..6e40de34 100644
--- a/ffi/src/error.rs
+++ b/ffi/src/error.rs
@@ -1,4 +1,4 @@
-/// Maps various errors to status codes.
+//! Maps various errors to status codes.
use failure;
use std::io;
@@ -113,8 +113,10 @@ pub enum Status {
// XXX: Skipping UnsupportedSignatureType = -20
// XXX: Skipping UnsupportedEllipticCurve = -21
+ /// Malformed message.
MalformedMessage = -22,
+ /// Index out of range.
IndexOutOfRange = -23,
}
diff --git a/ffi/src/lib.rs b/ffi/src/lib.rs
index 97d990d7..d0c6a5f4 100644
--- a/ffi/src/lib.rs
+++ b/ffi/src/lib.rs
@@ -63,6 +63,8 @@
//! sq_context_free (ctx);
//! ```
+#![warn(missing_docs)]
+
extern crate failure;
#[macro_use]
extern crate lazy_static;
diff --git a/ffi/src/store.rs b/ffi/src/store.rs
index d52af90e..a80a8f73 100644
--- a/ffi/src/store.rs
+++ b/ffi/src/store.rs
@@ -622,6 +622,7 @@ impl Stats {
}
}
+/// Represents a log entry.
#[repr(C)]
pub struct Log {
/// Records the time of the entry.
diff --git a/net/src/lib.rs b/net/src/lib.rs
index bb9c0bf4..b2ddfbd5 100644
--- a/net/src/lib.rs
+++ b/net/src/lib.rs
@@ -30,6 +30,8 @@
//! # }
//! ```
+#![warn(missing_docs)]
+
extern crate openpgp;
extern crate sequoia_core;
diff --git a/store/src/lib.rs b/store/src/lib.rs
index ac73961e..fcc2c403 100644
--- a/store/src/lib.rs
+++ b/store/src/lib.rs
@@ -48,6 +48,8 @@
//! # }
//! ```
+#![warn(missing_docs)]
+
extern crate capnp;
#[macro_use]
extern crate capnp_rpc;