fix(tvix/eval): address current clippy lints
Change-Id: I5288849d0e93511b0b5664fa92f1c6882e4a1356 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6563 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									d5ee893fb1
								
							
						
					
					
						commit
						268605140e
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -34,9 +34,9 @@ fn test_kv_attrs() {
 | 
			
		|||
    let kv_attrs = NixAttrs::construct(
 | 
			
		||||
        2,
 | 
			
		||||
        vec![
 | 
			
		||||
            value_val.clone(),
 | 
			
		||||
            value_val,
 | 
			
		||||
            forty_two_val.clone(),
 | 
			
		||||
            name_val.clone(),
 | 
			
		||||
            name_val,
 | 
			
		||||
            meaning_val.clone(),
 | 
			
		||||
        ],
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			@ -69,9 +69,9 @@ fn test_kv_attrs_iter() {
 | 
			
		|||
    let kv_attrs = NixAttrs::construct(
 | 
			
		||||
        2,
 | 
			
		||||
        vec![
 | 
			
		||||
            value_val.clone(),
 | 
			
		||||
            value_val,
 | 
			
		||||
            forty_two_val.clone(),
 | 
			
		||||
            name_val.clone(),
 | 
			
		||||
            name_val,
 | 
			
		||||
            meaning_val.clone(),
 | 
			
		||||
        ],
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,11 +55,11 @@ impl EvalWarning {
 | 
			
		|||
    fn message(&self, codemap: &CodeMap) -> String {
 | 
			
		||||
        match self.kind {
 | 
			
		||||
            WarningKind::DeprecatedLiteralURL => {
 | 
			
		||||
                format!("URL literal syntax is deprecated, use a quoted string instead")
 | 
			
		||||
                "URL literal syntax is deprecated, use a quoted string instead".to_string()
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            WarningKind::UselessInherit => {
 | 
			
		||||
                format!("inherited variable already exists with the same value")
 | 
			
		||||
                "inherited variable already exists with the same value".to_string()
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            WarningKind::UnusedBinding => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue