mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:55:47 +02:00
Fix latest clippy warnings (#3049)
This commit is contained in:
@ -349,21 +349,21 @@ pub enum Column {
|
||||
Value,
|
||||
}
|
||||
|
||||
impl Into<Column> for String {
|
||||
fn into(self) -> Column {
|
||||
Column::String(self)
|
||||
impl From<String> for Column {
|
||||
fn from(x: String) -> Self {
|
||||
Column::String(x)
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Column> for &String {
|
||||
fn into(self) -> Column {
|
||||
Column::String(self.clone())
|
||||
impl From<&String> for Column {
|
||||
fn from(x: &String) -> Self {
|
||||
Column::String(x.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Column> for &str {
|
||||
fn into(self) -> Column {
|
||||
Column::String(self.to_string())
|
||||
impl From<&str> for Column {
|
||||
fn from(x: &str) -> Self {
|
||||
Column::String(x.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user