Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ua-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub mod user_agent {
/// Borrowed extracted value, borrows the content of the original
/// parser or the content of the user agent string, unless a
/// replacement is performed. (which is only possible for the )
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct ValueRef<'a> {
///
pub family: Cow<'a, str>,
Expand Down Expand Up @@ -284,7 +284,7 @@ pub mod user_agent {

/// Owned extracted value, identical to [`ValueRef`] but not
/// linked to either the UA string or the extractor.
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct Value {
///
pub family: String,
Expand Down Expand Up @@ -417,7 +417,7 @@ pub mod os {
}

/// An OS extraction result.
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct ValueRef<'a> {
///
pub os: Cow<'a, str>,
Expand Down Expand Up @@ -447,7 +447,7 @@ pub mod os {
}

/// Owned version of [`ValueRef`].
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct Value {
///
pub os: String,
Expand Down Expand Up @@ -581,7 +581,7 @@ pub mod device {

/// Extracted device content, may borrow from one of the
/// [`Parser`] or from the user agent string.
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct ValueRef<'a> {
///
pub device: Cow<'a, str>,
Expand All @@ -606,7 +606,7 @@ pub mod device {
}

/// Owned version of [`ValueRef`].
#[derive(PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug, Clone)]
pub struct Value {
///
pub device: String,
Expand Down