History

[git-protocol] no warnings if there is no client feature set

Sebastian Thiel committed 5 years ago

Commit 335e8311 parent 1ee55181 file · +7 −1Browse files

Showing the changes to git-protocol/src (1 of 1 file). Show all

Unified · Split

git-protocol/src/lib.rs+7−1
@@ -4,7 +4,13 @@ · 3 unmodified lines
4//! the actual client implementation.4//! the actual client implementation.
5#![deny(unsafe_code)]5#![deny(unsafe_code)]
6#![deny(rust_2018_idioms, missing_docs)]6#![deny(rust_2018_idioms, missing_docs)]
7#![cfg_attr(feature = "async-client", allow(dead_code))] // TODO: remove this and assure this holds at when done.7#![cfg_attr(
8 any(
9 feature = "async-client",
10 all(not(feature = "blocking-client"), not(feature = "async-client"))
11 ),
12 allow(dead_code)
13)] // TODO: remove this and assure this holds at when done.
8 14
9/// A convenience export allowing users of git-protocol to use the transport layer without their own cargo dependency.15/// A convenience export allowing users of git-protocol to use the transport layer without their own cargo dependency.
10pub use git_transport as transport;16pub use git_transport as transport;