Skip to content

Commit 456a304

Browse files
committed
minor changes
1 parent 20ddb22 commit 456a304

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/configuration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Configuration {
7676

7777
/// Functionally equivalent to `tun_name`
7878
#[deprecated(
79-
since = "1.1.2",
79+
since = "0.7.0",
8080
note = "Since the API `name` may have an easy name conflict when IDE prompts, it is replaced by `tun_name` for better coding experience"
8181
)]
8282
pub fn name<S: AsRef<str>>(&mut self, tun_name: S) -> &mut Self {
@@ -142,7 +142,7 @@ impl Configuration {
142142

143143
/// Set the number of queues.
144144
/// Note: The queues must be 1, otherwise will failed.
145-
#[deprecated(since = "1.0.0", note = "The queues will always be 1.")]
145+
#[deprecated(since = "0.7.0", note = "The queues will always be 1.")]
146146
pub fn queues(&mut self, value: usize) -> &mut Self {
147147
self.queues = Some(value);
148148
self

src/platform/linux/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ impl PlatformConfig {
5353
/// Enable or disable packet information, the first 4 bytes of
5454
/// each packet delivered from/to Linux underlying API is a header with flags and protocol type when enabled.
5555
///
56-
/// [Note: This configuration just applies to the Linux underlying API and is a no-op on tun(i.e. the packets delivered from/to tun always contain no packet information) -- end note].
56+
/// [Note: This configuration just applies to the Linux underlying API and is a no-op on `tun` crate
57+
/// (i.e. the packets delivered from/to `tun` crate must always NOT contain packet information) -- end note].
5758
#[deprecated(
58-
since = "1.0.0",
59+
since = "0.7.0",
5960
note = "No effect applies to the packets delivered from/to tun since the packets always contain no header on all platforms."
6061
)]
6162
pub fn packet_information(&mut self, value: bool) -> &mut Self {

0 commit comments

Comments
 (0)