mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-11-04 16:28:55 +08:00 
			
		
		
		
	Use existing message instead of ffi::code_to_str in Error trait
				
					
				
			This commit is contained in:
		@@ -108,7 +108,7 @@ impl fmt::Display for SqliteError {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
impl error::Error for SqliteError {
 | 
					impl error::Error for SqliteError {
 | 
				
			||||||
    fn description(&self) -> &str {
 | 
					    fn description(&self) -> &str {
 | 
				
			||||||
        ffi::code_to_str(self.code)
 | 
					        self.message.as_slice()
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user