remove inlining

This commit is contained in:
2020-07-19 08:42:03 +01:00
parent 3de82cbacc
commit f08f0fdc16
16 changed files with 1 additions and 84 deletions

View File

@@ -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)
}