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

Unified · Split

git-protocol/src/lib.rs+7−1
@@ -4,7 +4,13 @@ · 3 unmodified lines
44 //! the actual client implementation.
55 #![deny(unsafe_code)]
66 #![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.
814
915 /// A convenience export allowing users of git-protocol to use the transport layer without their own cargo dependency.
1016 pub use git_transport as transport;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t