remove inlining
This commit is contained in:
@@ -9,7 +9,6 @@ pub struct Colour {
|
||||
pub struct InvalidRgb;
|
||||
|
||||
impl Colour {
|
||||
#[inline]
|
||||
pub(crate) fn from(string: &str) -> Result<Colour, InvalidRgb> {
|
||||
let values: Vec<&str> = string.trim_matches(',').split(',').collect();
|
||||
|
||||
@@ -26,7 +25,6 @@ impl Colour {
|
||||
}
|
||||
|
||||
impl ToString for Colour {
|
||||
#[inline]
|
||||
fn to_string(&self) -> String {
|
||||
format!("{},{},{}", self.red, self.green, self.blue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user