You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: color.rs
    path of file: ./repos/zed/crates/color/src
    
    the code of the file until where you have to start completion: //! # Color
//!
//! The `color` crate provides a set utilities for working 
    
pub fn states_for_color(color: RGBAColor, is_light: bool) -> ColorStates {
    let adjustment_factor = if is_light { 0.1 } else { -0.1 };
    let hover_adjustment = 1.0 - adjustment_factor;
    let active_adjustment = 1.0 - 2.0 * adjustment_factor;
    let focused_adjustment = 1.0 - 3.0 * adjustment_factor;
    let disabled_adjustment = 1.0 - 4.0 * adjustment_factor;

    let make_adjustment = |color: RGBAColor, adjustment: f32| -> RGBAColor {
        // Adjust lightness for each state
        // Note: Adjustment logic may differ; simplify as needed for sRGB
        RGBAColor::new(
            color.r * adjustment,
            color.g * adjustment,
            color.b * adjustment,
            color.a,
        )
    };

    let color = color.clamp();

    ColorStates {
        default: color.clone(),
        hover: make_adjustment(color.clone(), hover_adjustment),
        active: make_adjustment(color.clone(), active_adjustment),
        focused: make_adjustment(color.clone(), focused_adjustment),
        disabled: make_adjustment(color.clone(), disabled_adjustment),
    }
}