1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Compatibility with Rust 1.30.

This commit is contained in:
Martin Hoffmann
2019-02-12 18:05:02 +01:00
parent 7d8db32342
commit c830c9971b
3 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,7 @@
//!
//! This crate contains all the moving parts of the Routinator. The
//! application itself, via `main.rs` is only a very tiny frontend.
#![allow(unknown_lints)] // Clippy for 1.30.
extern crate bytes;
extern crate chrono;

View File

@ -52,7 +52,7 @@ pub enum Operation {
/// Output is requested by this being some. If there is a path,
/// then we output to the file identified by the path, otherwise
/// we print to stdout.
#[allow(clippy::option_option)]
#[allow(option_option)]
output: Option<Option<PathBuf>>,
},

View File

@ -733,7 +733,7 @@ impl Repository {
/// # Rsyncing
///
impl Repository {
#[allow(clippy::mutex_atomic)] // XXX Double check maybe they are right?
#[allow(mutex_atomic)] // XXX Double check maybe they are right?
fn rsync_module(&self, module: &uri::RsyncModule) {
if let Some((ref state, ref command)) = self.0.rsync {
if state.lock().unwrap().have_seen(module) {
@ -775,7 +775,7 @@ struct RsyncState {
/// The first element of each list item is the module for which the
/// process runs, the second is a conditional variable that is going
/// to be triggered when the process finishes.
#[allow(clippy::type_complexity)]
#[allow(type_complexity)]
running: Vec<(uri::RsyncModule, Arc<(Mutex<bool>, Condvar)>)>,
/// The rsync modules we already tried in this iteration.
@ -790,7 +790,7 @@ impl RsyncState {
}
}
#[allow(clippy::type_complexity, clippy::mutex_atomic)]
#[allow(type_complexity, mutex_atomic)]
fn get_running(
&mut self,
module: &uri::RsyncModule