Skip to content

Commit

Permalink
{mio,tokio}-udev: apply copyright
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Pierre Dudey <[email protected]>
  • Loading branch information
jeandudey committed Jun 20, 2020
1 parent 24f48f6 commit cdbac96
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
12 changes: 11 additions & 1 deletion mio-udev/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#![cfg(target_os = "linux")]
// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and
// LICENSE-APACHE files at the top-level directory of this
// distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! # mio-udev
//!
Expand All @@ -20,6 +28,8 @@
//! use mio_udev;
//! ```
#![cfg(target_os = "linux")]

pub use udev::{
Attribute, Attributes, Context, Device, Enumerator, Error as UdevError,
Event, EventType, Properties, Property,
Expand Down
10 changes: 10 additions & 0 deletions mio-udev/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and
// LICENSE-APACHE files at the top-level directory of this
// distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::{io, ops::Neg};

#[doc(hidden)]
Expand Down
10 changes: 10 additions & 0 deletions tokio-udev/examples/usb_hotplug.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and
// LICENSE-APACHE files at the top-level directory of this
// distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use futures_util::future::ready;
use futures_util::stream::StreamExt;
use tokio_udev::{Context, MonitorBuilder};
Expand Down
12 changes: 11 additions & 1 deletion tokio-udev/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#![cfg(target_os = "linux")]
// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and
// LICENSE-APACHE files at the top-level directory of this
// distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! # tokio-udev
//!
Expand All @@ -20,6 +28,8 @@
//! use tokio_udev;
//! ```
#![cfg(target_os = "linux")]

pub use mio_udev::{
Attribute, Attributes, Context, Device, Enumerator, Event, EventType,
Properties, Property, UdevError,
Expand Down

0 comments on commit cdbac96

Please sign in to comment.